rect

rect( )

Description
Draws a rectangle

Syntax
rect(x, y, w, h) 

Parameters
  x : x-coordinate of the rectangle
  y : y-coordinate of the rectangle

  w : the width of the ractangle
  h  : the hight of the ractangle

Usages


rect(100, 100, 300, 200)

Examples in arduino

#include "AppGosu.h"
AppGosu app;


void  setup() {
     app.start();
     app.clearAll();
 
     app.rect(100, 100, 300, 200);  // default white

    
     app.fill(255,255,0);   // yellow
     app.rect(100, 400, 100, 200);

}
void loop() {

}


Examples in other MCU

printf("rect(100,100,300,200);");  


















-----------------------------------------

No comments: