Tv GetPixelLayer

From TVPaintWiki
Revision as of 10:05, 11 December 2009 by Hervé (Talk | contribs) (Created page with 'Category:Script commands Category:Script commands Colors Category:George tv_GetPixelLayer layer x y Indicates the color of a pixel on a layer. The layer argument de…')

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


tv_GetPixelLayer layer x y

Indicates the color of a pixel on a layer. The layer argument defines what layer to look at. "BRUSH" looks at the custom brush. "SPARE" looks at the spare image. "UNDO" looks at the undo buffer (that is, what would appear if you clicked undo). "FRONT" looks at all layers above the current layer, as if they were merged. "BACK" looks at all layers below the current layer, as if they were merged. "CURRENT" looks at the current layer. The x and y arguments are the coordinates of this pixel. This command returns red, green, blue and alpha information, defining the values of the color components used by the pixel. Each value is between 0 and 255.