mojo.graphics.Canvas.DrawLine - nitrologic/monkey2 GitHub Wiki
mojo::mojo.graphics.mojo.graphics.Canvas.DrawLine
monkey:monkey.types.Float,y0:monkey:monkey.types.Float,x1:monkey:monkey.types.Float,y1:monkey:monkey.types.Float )
Method DrawLine:Void( x0:std:std.geom.Vec2f,v1:std:std.geom.Vec2f )
Method DrawLine:Void( v0: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. |