ANN: Kaleidoscopes for all seasons

stephen barncard stephenREVOLUTION2 at barncard.com
Sat Mar 14 01:16:31 EDT 2009


THIS IS AWESOME.   I just wasted two hours with this.... fun...  thanks
Stephen Barncard
-------------------------
San Francisco
http://barncard.com


2009/3/13 James Hurley <jhurley0305 at sbcglobal.net>

> On the theory that one cannot have too many cookies (the real kind) or
> kaleidoscopes (the artificial kind) in one's  life, I  here offer my final
> (I hope) entry in the latter category.
>
> It features two different methods, each with its own advantages. One can
> draw or paint the figures (the latter thanks to critical input from Bernd
> Niggemann.)
>
> If the pattern  is drawn (using Run Rev graphic lines) the resolution is
> quite good but the coloration is limited. If the pattern is painted (using
> the curve pen  tool) the resolution is not as clean, but there is more
> flexibility in the choice of color along  the line, something that cannot be
> done with a graphic line.
>
> 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.
>
> To see all these wonders, run this in the message box:
>
> go stack url  "http://www.jamesphurley.com/CollidingScopes.rev"
>
> Jim  Hurley
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list