I was wondering how are colour palets made? how do you change the colour of a sprite acording to where you click?
Offline
I tried, but with no succsess
Offline
OR try
For stage:
<when[ Stage ]clicked>
<broadcast[ Colour change
For colour changing sprite:
<when I receive[ Colour Change
<set[ Colour ]effect to( (( <mouse x> <+> <mouse y> ))
That works also!
Last edited by Auron (2008-11-19 16:48:53)
Offline
There's a premade one over here
http://scratch.mit.edu/projects/WidgetFarmer1/157427
that was harvested from my Fuzzy Paint project by WidgetFarmer1. It uses the position of the mouse with respect to the pallet sprite to come up with the selected color and shade. Greyscale is treated differently as it can not be generated by Set Color with numbers. If you don't care about greyscale, you can use the one off my Feather Paint project, which is just a simpler version of this one.
Offline