Hi James

For your problem of generating the rainbow colours, I had a similar problem wanting to automatically generate a fade between any two colours. I do have uploaded an example stack to revOnline that creates gradients. Unfortunately there's several quirks and strange behaviours. Most are due to rounding error problems, but I'd wager some are also due to bad coding.

Stack: Gradient creator by BvG
Category: Utilities
User: BvG

On 14 Mar 2009, at 05:45, James Hurley wrote:

I found a somewhat unsatisfactory solution to my earlier post requesting a formula to translate color frequency into RGB color coefficients. I found an image of the color spectrum on the web. It was a rectangle ranging from red on the left to violet on the right. By extracting the first line of imagedata I obtained the RGB numbers for the spectrum. This list of 400 lines of RGB data was inserted into a custom card property. As one draws out a line in the Kaleidoscope the colors are drawn sequentially from this list so that the line ranges (relatively smoothly) from red through the spectrum to violet. It is not as smooth as I would like, but it was quick and painless.


--

official ChatRev page:
http://bjoernke.com/runrev/chatrev.php

Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev";

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to