Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
random cubes
int square_top_x = 10;
int square_top_y = 20;
int square_bot_x = 100;
int square_bot_y = 200;
void setup()
{
size(500, 500);
}
void draw()
{
square_bot_x = int(random(width));
square_bot_y = int(random(height));
rect(square_top_x, square_top_y, square_bot_x, square_bot_y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment