Tv RectFill

From TVPaintWiki
Jump to: navigation, search

<<<George<<<Command Reference<<<<Drawing Functions


  tv_RectFill x1 y1 x2 y2 [cx cy] [button]

Draws a filled rectangle in the current image in the current layer. The x1 y1 and x2 y2 arguments indicate the positions of the top left and bottom right corners of the rectangle respectively. If color range or opacity mapping is active, the cx and cy arguments indicate the position of the end of the range direction vector that starts at the center of the rectangle, these arguments are just for compatibility, don't use cx cy with TVPaint. The button argument indicates if this rectangle should be drawn as it would be if you had used the mouse left button (value 0) or right button (value 1).