Great idea... and I like the idea of randomly altering random numbers!
You could pick three random values and then randomly pick one of the three to set to 0.
QuoteYou could pick three random values and then randomly pick one of the three to set to 0.You can also pick one to be randomly 255 as well.The other way is to jay use the top two bits of each component.In truth there are not all that many vivid colours anyway.
Picking one to be 255 would not help.
In truth there are not all that many vivid colours anyway.
Quote from: Grumpy_Mike on Mar 25, 2013, 12:44 amIn truth there are not all that many vivid colours anyway.1536 of them in the HSV model with 256 values for RGB.
I had the best results with nice colors by only lighting two LEDs at a time. If you ramp the PWM up and then down by 1, while overlapping with the next color(R&G, G&B, B&R) by 180 degrees, you get a rainbow of vivid colors.
Any illumination of the third LED will just make the color lose saturation.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16