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

make Color::new a const function #283

Merged
merged 1 commit into from
May 11, 2019
Merged

make Color::new a const function #283

merged 1 commit into from
May 11, 2019

Conversation

ElectricCoffee
Copy link
Contributor

Makes it so that it's possible to write

const LINK_COLOR: Color = Color::new(0x00, 0xCC, 0x00);

Saves the user from using the struct directly.

@tomassedovic tomassedovic merged commit 4fd224a into tomassedovic:master May 11, 2019
@tomassedovic
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants