draw_line_width

Draws a line a defined number of pixels wide.

Syntax:

draw_line_width(x1, y1, x2, y2, w);


Argument Description
x1 The x coordinate of the start of the line.
y1 The y coordinate of the start of the line.
x2 The x coordinate of the end of the line.
y2 The y coordinate of the end of the line.
w The width of the line in pixels.


Returns: N/A


Description

With this function you can draw a line of a specified width between any two points in the game room.


Example:

draw_set_colour(c_red);
draw_line_width(100, 100, 200, 200, 6);

This will draw a red diagonal line, 6 pixels wide, from point (100,100) to point (200,200).


Back: Drawing Basic Forms
Next: draw_line_width_colour
© Copyright YoYo Games Ltd. 2018 All Rights Reserved