J: Processing Psuedocode

I wanted to draw a grid-like animation that positioned on x,0 and y,0 at random.


float x = 0;

float y = 100;

float z = 0;

floatt h = 100;


void setup () {

//set up background & size



void draw () {


//draw rect by incrementing x axis



If (x == length of page) {

//draw rect at random position

//increment x to move across


If (z == length of page) {

//set z back to beginning

//draw rect at random position



No Comments

Sorry, the comment form is closed at this time.