LINE()

From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

You can draw a line in a graphic object with the Line method. It will appear in the current SIZE() and in the current COLOR().

Syntax

  1. #handle LINE(originX, originY, destX, destY) - Draw a line from originX, originY to destX, destY

Hints

Place useful hints about this keyword here

Example

'create a graphic object
graphic #g, 800, 600

'draw a line from 20,40 to 600,100
#g line(20,40,600,100)

'display graphic on web page
render #g

Useful Procedures

' Place a useful function or sub using this keyword here