Hey! Simple and easy, Thanks much, will try and get it working tomorrow. On Fri, Dec 12, 2014 at 11:27 AM, Richmond <richmondmathew...@gmail.com> wrote:
> On 12/12/14 19:19, Mike Bonner wrote: > >> I have a quick question, its one of those that should be obvious, but i'm >> just not seeing it. >> >> What i'm playing with right now, is just a bunch of round grc moving on >> screen. (an adaption of the "swarm" sample stack created by scott rossi) >> What I'd like to do, is modify the colors of of each ball based on >> direction and speed. Sort of like a color wheel, zero speed or direction >> being the center of the wheel. So, direction would affect color, and >> speed >> would affect the end color based on a gradient dark to light. >> >> I hope the explanation is clearer than mud. >> >> Any suggestions, or reading material that might help get me kickstarted? >> >> TIA >> >> Mike >> _______________________________________________ >> >> > I don't think that should be unduly difficult . . . > > For instance, one could leverage RGB codes so that, let us say, the > direction in degrees > could be signalled something like this: > > RRR= round (255/(360-DIR) > set the backgroundColor of grc "myFatBlob" to RRR,GGG,BBB > > where DIR is the direction in degrees, GGG is some number 0<GGG<256, and > so is BBB. > > Darkness could be worked out by having one's "Blobs" consist of a pair of > graphics (one on top of the other) > where the lower one is black. Speed could then be signalled by setting the > BLEND level of the top one. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode