Rect

Syntax

Draw:Rect(x, y, width, height, color, destination)

Description

Draws an outline of a rectangle.

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:Rect(50, 50, 100, 30, colorYELLOW, 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