start => draw

Line

Syntax

Draw:Line(x1, y1, x2, y2, color, line_width)

Description

Draws a line.

Note

A parameter for destination will be added in later version.

Example

function main() {
  Var:Number colorYELLOW;
  Konsol:RGB(255,255,0, colorYELLOW)
 
  Screen:Show()
 
  Draw:Line(50, 50, 100, 100, colorYELLOW, 5)
 
  while (B1 EQ false) {
    Screen:Render()
  }
}


http://konsolscript.sourceforge.net © 2005-2008 Mj Mendoza IV      
http://www.sourceforge.net