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

Set Spectrum Using Array #21

Open
mohridwanhdp opened this issue May 3, 2021 · 1 comment
Open

Set Spectrum Using Array #21

mohridwanhdp opened this issue May 3, 2021 · 1 comment

Comments

@mohridwanhdp
Copy link

Is any chance to make a setSpectrum to receive a single array param,
So we can make
rainbow.setSpectrum('red','yellow','green');
into
rainbow.setSpectrum(['red','yellow','green']);

@access0r
Copy link

I think I see where you are going with this.
I have been thinking about how I could use this to assign a new color to the next element in order.

i.e, set 1st first output color, then 2nd 2nd output, 3rd 3rd output...etc .etc

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

No branches or pull requests

2 participants