lineTo - method of the CanvasCtx object
Adds a new point and creates a line from that point to the last specified point.
Object lineTo(Long x, Long y)
|x||(Long) The x-coordinate for line drawing|
|y||(Long) The y-coordinate for line drawing|
The method creates a path. Therefore before this method is called the beginPath
method should be called. For the rendering itself the stroke
method is used.
This method is also functional in Web panels
variable represents the drawing canvas (CanvasCtx
). The setup is done on the "Draw
" tab at the beginning of the script of drawing event onDraw