Tv SetPalette

From TVPaintWiki
Revision as of 11:07, 11 December 2009 by Hervé (Talk | contribs) (Created page with 'Category:Script commands Category:Script commands Colors Category:George tv_SetPalette color red green blue Sets a color in the working palette. The color argument …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


tv_SetPalette color red green blue

Sets a color in the working palette. The color argument contains the color number, with a value between 0 and 255. In the working palette, colors are numbered from left to right and from top to bottom, with color 0 being located in the top left corner. The red, green and blue arguments are the values of the components of the required color. These arguments are all between 0 and 255. This command returns the values of the red, green and blue components of the previous color.