| Terms&Conditions | This website has been designed for Firefox ![]() |
Design by Trollsplatterer (©2010) |
This is an example on how to use a color palette in your game. It allows using manually defined colors, but it also contains a script which automatically designs an entire palette. Just give the amount of rows and columns and the colors are generated for you. The example uses one object for the palette, which is created by a different object when you right-click on it. The object draws the palette, senses mouse clicks and stores the color value in a local variable in its creator.
* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.