Color generation based on random number

Posted by Mikulas Dite on Stack Overflow See other posts from Stack Overflow or by Mikulas Dite
Published on 2010-06-01T19:40:45Z Indexed on 2010/06/01 19:43 UTC
Read the original article Hit count: 204

Filed under:
|
|

I would like to create a color generator based on random numbers, which might differ just slightly, but I need colors to be easily recognizable from each other. I was thinking about generation then in a rgb format which would be probably easiest. I'm afraid simply multiplying given arguments wouldn't do very well. What algorithm do you suggest using? Also, second generated color should not be the same as previous one, but I don't want to store them - nor multiplying with (micro)time would do well since the scripts' parts are usually faster.

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about color