dxLine(x1%,y1%,x2%,y2%)

Parameters

x=starting x location of the dxLine
y=starting y location of the dxLine
x1=ending x location of the dxLine
y1=ending y location of the dxLine

Description

This command draws a dxLine, in the current drawing dxColor, from one point on the screen to another (from the x,y to x1,y1 location). See example.

Example

; dxLine example
Graphics 800,600,16

; Wait for ESC to hit
While Not dxKeyHit(1)
; Set a random dxColor
dxColor dxRnd(255),dxRnd(255),dxRnd(255)
; Draw a random dxLine
dxLine dxRnd(800),dxRnd(600),dxRnd(800),dxRnd(600)
Wend

Index