DrawLine

Top  Previous  Next

Syntax

DrawLine(x1 as INT,y1 as INT,x2 as INT,y2 as INT,col as UINT,opt buffer as POINTER)

Description

Draws a solid line onto the buffer.

Parameters

x, y - Starting coordinates of the line

x2, y2 - Ending coordinates of the line

col - Color of the line

buffer - Optional. Can be one of BACKBUFFER (default), FRONTBUFFER or SPRITEBUFFER.

Return value

None

Remarks

See Also: DrawAALine, DrawAlphaLine

Example usage

DrawLine 0,0, 100,100, RGB(0,255,0)