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.
With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Warning: this topic has not been posted in for at least 120 days.Unless you're sure you want to reply, please consider starting a new topic.