I want to make a linear gradient from x1 y1 to x2 y2
But If I use this code
Code: Select all
Tv_areainit map_gradient on map_gradient linear
Tv_fill x1 y1 x2 y2
Code: Select all
Tv_areainit map_gradient on map_gradient linear
Tv_fill x1 y1 x2 y2
Code: Select all
PARAM line
PARSE result type x1 y1 x2 y2 rest
myVector= x1' 'y1' 'x2' 'y2
tv_areaInit map_gradient on
tv_areaInit vector myVector
tv_getWidth
pageX=result-1
tv_getHeight
pageY=result-1
myBound = 0" "0" "pageX" "pageY
tv_rectFill myBound