We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, shouldn't this method be replaceable by the following simpler and more efficient code?
extension on Color { Color withIncrement(int amount) => Color.fromRGBO( (this.red + amount).clamp(0, 255), (this.green + amount).clamp(0, 255), (this.blue + amount).clamp(0, 255), 1 ); }
Or am I missing something?
The text was updated successfully, but these errors were encountered:
Yeah, definitely. I'll at least rewrite that function to use the code you supplied, if not actually use an extension method like you suggested.
I'm very much willing to accept a pull request if you submit one. Otherwise I'll refactor it later myself.
Sorry, something went wrong.
No branches or pull requests
Hi, shouldn't this method be replaceable by the following simpler and more efficient code?
Or am I missing something?
The text was updated successfully, but these errors were encountered: