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

[Cleanup] Use p5.color built-in functions to adjust RGBA values in rainbow effect #522

Open
epeach opened this issue Nov 29, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@epeach
Copy link
Contributor

epeach commented Nov 29, 2018

In order to get the rainbow effect to use palettes as quickly as possible, I manually adjusted RGB values of the p5.color object by incrementing values in an array.

let [red, green, blue] = paletteColor.levels;

We should move to using the built-in p5.color functions to adjust RGBA. https://p5js.org/reference/#/p5.Color

@simplycloud simplycloud added the enhancement New feature or request label Nov 29, 2018
@simplycloud simplycloud added this to the Post HOC milestone Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants