start => draw

Rect

Syntax

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

Description

Draws an outline of a rectangle.

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:Rect(50, 50, 100, 30, colorYELLOW)
 
  while (B1 EQ false) {
    Screen:Render()
  }
}


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