Skip to content

draw_line_color

Vašek edited this page Jan 20, 2019 · 1 revision

draw_line_color

Draw colored line

Syntax:

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

Description:

This function draws a colored line.

Example:

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

Clone this wiki locally