Tv AreaInit

From TVPaintWiki
Jump to: navigation, search

<<<George<<<Command Reference<<<Tools


  tv_areainit ["RESET"] ["mode VAL"] ["vector x1 y1 x2 y2"] ["map_xbrush PARAM"] ["map_ybrush PARAM"]
  ["map_xopacity PARAM"] ["map_yopacity PARAM"] ["map_gradient PARAM"] ["opacity VAL"] ["smooth VAL"] ["aaliasing VAL"]


Get the properties of current fill by using

 tv_areainit "backup"

RETURN PARSE result tv_setactiveshape shapeVAL mode modeVAL vector vectorVAL1 vectorVAL2 vectorVAL3 vectorVAL4 aaliasing aaliasingVAL map_gradient map_gradientVAL map_xbrush map_xbrushVAL map_ybrush map_ybrushVAL map_gradient map_gradientVAL map_xopacity map_xopacityVAL map_yopacity map_yopacityVAL opacity opacityVA gap gapVAL expand expandVAL range rangeVAL src srcVAL autopickcolor autopickcolorVAL smooth smoothVAL

Initializes the coordinates table used to draw polygons (see tv_AreaMove). Use this command before using a filling shape. Be Carefull, order of the arguments is important, "tv_areainit reset 1 width 50 height 50" has a different result than "tv_areainit width 50 height 50 reset 1" because arguments are called in an order.
Arguments Unit Type Notes
RESET 0 or 1 int Custombrush returns to default
Mode name or line position char or int Drawing mode
Vector pixel double Filling vector coordinates.
Map_xbrush, Map_ybrush N/A char OFF, ON, WRAP, STRETCH or TILE
Map_xopacity, Map_yopacity N/A char OFF, ON, MAX, PART, CENTER or VECT
Map_gradient N/A char OFF, ON, LINEAR, CIRCLE, CENTER, RADIAL or SQUARE
Opacity percent int  
Smooth pixel int  
Aaliasing 0 or 1 bool