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

Added invert method for color, and added common color names. #965

Merged
merged 2 commits into from
Jan 31, 2020
Merged

Added invert method for color, and added common color names. #965

merged 2 commits into from
Jan 31, 2020

Conversation

KenSuenobu
Copy link
Contributor

This adds an "invert()" method that returns the inverse of the Color being used. It also adds commonly named colors to the Color implementation, so that applications can call on these rather than having to create their own constants.

@Cobrand
Copy link
Member

Cobrand commented Jan 31, 2020

Why not, thanks!

@Cobrand Cobrand merged commit 9dffc36 into Rust-SDL2:master Jan 31, 2020
@KenSuenobu
Copy link
Contributor Author

My pleasure. Great work on the lib, by the way. Using it in Pushrod!

sypwex pushed a commit to sypwex/rust-sdl2 that referenced this pull request Jun 2, 2024
Added invert method for color, and added common color names.
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