-
-
Notifications
You must be signed in to change notification settings - Fork 18
draw_line_color
Vašek edited this page Jan 20, 2019
·
1 revision
Draw colored line
draw_line_color(pos1, pos2, col1, col2)
Argument | Description |
---|---|
Vector2 pos1 |
First position |
Vector2 pos2 |
Second position |
Color col1 |
First color |
Color col2 |
Second color |
Returns: void
This function draws a colored line.
Vector2 pos1;
pos1.X = Position.X-16;
pos1.Y = Position.Y-16;
Vector2 pos2;
pos2.X = Position.X+16;
pos2.Y = Position.Y+16;
draw_line_color(pos1, pos2, Color.Blue, Color.Red);
Above code will draw a double colored line across the object.
Back to Shapes