Example : ellipse

Example :  ellipse

                       youTube : http://youtu.be/OWMAs0ZhJLw


Arduino code

#include "AppGosu.h"
AppGosu app;


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

void loop() {
    app.background(0,0,0);
    app.textSize(50);
    app.fill(255,255,255);
    app.text("--- ellipse ---", 80, 50);
    
    for(int i=3; i<15; i++) {
        app.stroke( random(50,255), random(50,255), random(50,255) );
        app.fill( random(50,255), random(50,255), random(50,255) );
        app.ellipse(240, 50*i, 25*i, 5*i);
    }
    delay(3000);
  
} // end of loop




























by AppGosu

No comments: