mojo.graphics.Canvas.DrawLine - nitrologic/monkey2 GitHub Wiki

mojo::mojo.graphics.mojo.graphics.Canvas.DrawLine

Method DrawLine:Void( x0:monkey:monkey.types.Float,y0:monkey:monkey.types.Float,x1:monkey:monkey.types.Float,y1:monkey:monkey.types.Float )
Method DrawLine:Void( v0:std:std.geom.Vec2f,v1:std: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.