-
getRGB with rotation?
I'm stumped...I've got a color wheel that I'm adjusting with sliders, and I need to get the rgb at a specific pixel location.
I've got it working for the y slider, but can't figure out the math for the rotation slider...
Anyone out there that can shed any light on this??
-
Got it...In case anyone else needs to do something like this, I used the following equations to set the adjustX and adjustY.
angle = the _x of the rot slider
rad = the _x of the y slider
adjustX=cx+Math.sin(angle)*rad;
adjustY=cy+Math.sin(angle)*rad;
Works GREAT!!
Thanks!