Line

Syntax

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

Description

Draws a line.

Note

destination parameter can either be an Image buffer or the screen.

Example

function main() {
  Var:Number colorYELLOW;
  Konsol:RGB(255,255,0, colorYELLOW)
 
  Screen:Show()
 
  Draw:Line(50, 50, 100, 100, colorYELLOW, 5, screen)
 
  while (B1 EQ false) {
    Screen:Render()
  }
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net