<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Method >lineTo |
Draws a line from the current position up to, but not including, the specified point.
Prototype :
void lineTo
(
float X,
float Y
)
Arguments :
X |
X coordinate |
Y |
Y coordinate |
Reference :
The X and Y coordinates of the shape are relative to the upper-left corner of the component.
Example :
ctx.lineTo(10, 10);
Available Events :
OnPostDraw, OnPreDraw