Skip to content

draw_line_width

CryoEagle edited this page Jan 13, 2019 · 1 revision

draw_line_width

Draw line with width option

Syntax:

draw_line_width(pos1, pos2, width, angle)
Argument Description
Vector2 pos1 First position
Vector2 pos2 Second position
int width Thickness
double angle Rotate line

Returns: void

Description:

This function draws line, it's like draw_line(); but this have width option that can make line bold and option that can rotate line.

Example:

draw_line_width(new Vector2(Position.X,Position.Y), new Vector2(Position.X+20,Position.Y+20), 5, 20 );

Above code will draw bold line with small rotation.

Back to Shapes

Clone this wiki locally