Example : rect

Example : rect

                       youTube : http://youtu.be/Kl4Ve_QuHSk


Arduino code

#include "AppGosu.h"
AppGosu app;


void setup() {
   
  app.start();
  app.setDelayCmd(100); // max speed 20ms
  app.clearAll();
  
}

void loop() {
    app.background(0,0,0);
    app.textSize(50);
    app.fill(255,255,255);
    app.Ttext("--- rect ---", 60, 50);
    
    for(int i=3; i<10; i++) {
        app.stroke( random(50,255), random(50,255), random(50,255) );
        app.fill( random(50,255), random(50,255), random(50,255) );
        app.rect(50, 50*i, 25*i, 5*i);
    }
    delay(3000);
  
} // end of loop



























by AppGosu

No comments: