Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int z = 300;
- int cols = width;
- int rows = height;
- int[][] myGrid = new int [cols][rows];
- void setup()
- {
- size(1280,720);
- for(int i = 0; i < rows; i++)
- {
- for(int j = 0; j < cols; j++)
- {
- myGrid[i][j] = 0;
- }
- }
- }
- void drawShape()
- {
- int x = 0;
- noStroke();
- while (x < 255)
- {
- frameRate(5);
- fill(random(255),random(255),random(255),random(255));
- ellipse(random(1280)*2,random(720)*2, random(50), random(50));
- rect(random(1280)*5, random(720)*5, x, x);
- x++;
- }
- }
- void draw()
- {
- //drawShape();
- for(int i = 0; i < rows; i++)
- {
- for(int j = 0; j < cols; j++)
- {
- myGrid[i][j];
- ellipse(
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement