Mike.


If you know the direction, either because you set it up that way or you 
interrogate the x,y position regularly, can't you set your colors based on that 
information? Same with the speed?


Craig



-----Original Message-----
From: Mike Bonner <bonnm...@gmail.com>
To: How to use LiveCode <use-livecode@lists.runrev.com>
Sent: Fri, Dec 12, 2014 12:20 pm
Subject: Direction, and color


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
_______________________________________________
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

Reply via email to