Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Color.from_rgba8 and deprecate Color8 #100825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Dec 26, 2024

Closes #30499

@KoBeWi KoBeWi added this to the 4.x milestone Dec 26, 2024
@KoBeWi KoBeWi requested review from a team as code owners December 26, 2024 12:03
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of has been in the wrong place for a really long time, ever since exposing static methods became possible. The logic has been ridiculously simplified, too.

I'm not sure how exactly to go about this but the original Color8 needs to be surrounded by #ifndef DISABLE_DEPRECATED blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relocate Color8 and ColorN methods from @GDScript class to Color class
2 participants