Tv GetAPen

From TVPaintWiki
Revision as of 13:03, 6 September 2015 by Madsjuul (Talk | contribs)

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

<<<George<<<Command Reference<<<Color


tv_GetAPen

Returns the values of the red, green, blue and alpha components of the foreground color. Each value is between 0 and 255.


11.0.0

A command has been added to retrieve AND set H, S and L colors.


@return r g b a ( if no parameter (compatible mode) ) @return "rgb" r g b ( if "rgb" parameter ) @return "hsl" h s l ( if "hsl" parameter ) @return "error"

tv_SetAPen r g b | r g b a | "rgb" r g b | "hsl" h s l 
tv_SetBPen r g b | r g b a | "rgb" r g b | "hsl" h s l 

@return previous values: "rgb" r g b ( if r g b (compatible mode) ) @return previous values: "rgb" r g b ( if r g b a (to be able to use GetAPen result as parameters) ) @return previous values: "rgb" r g b ( if "rgb" parameters ) @return previous values: "hsl" h s l ( if "hsl" parameters ) @return "error"