in reply to HTML text toner
Note that my version keeps going round and round, but never actually gets back to the starting point, thereby insuring a steady stream of different hues.
In reply to Dog and Pony, yes, I'm rotating the channels independently. I use the output of sin(), scaling the range -1..1 to 0..255. When the sine output is positive and the difference from the previous value is negative, then I'm at the top o' the wave, so to speak, so I choose another period (13 chars, 17 chars...).
I use prime numbers to ensure that the three frequencies are all relatively prime to each other... although I'm not sure that that is important, just that each channel uses a different period, even if they are multiples of each other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML text toner
by Dog and Pony (Priest) on Feb 18, 2002 at 10:34 UTC |