Skip to content

Mojo graphics canvas drawline

mojo:mojo.graphics.Canvas.DrawLine

Method DrawLine:Void( x0:Float,y0:Float,x1:Float,y1:Float )#
Method DrawLine:Void( v0:std.geom.Vec2f,v1:std.geom.Vec2f )#

Draws a line.

Draws a line in the current Color using the current BlendMode.

The line coordinates are transformed by the current Matrix and clipped to the current Viewport and Scissor.

Parameters
x0 x0 X coordinate of first endpoint of the line.
y0 y0 Y coordinate of first endpoint of the line.
x1 x1 X coordinate of first endpoint of the line.
y1 y1 Y coordinate of first endpoint of the line.
v0 v0 First endpoint of the line.
v1 v1 Second endpoint of the line.