Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. int z = 300;
  2. int cols = width;
  3. int rows = height;
  4. int[][] myGrid = new int [cols][rows];
  5.  
  6. void setup()
  7. {
  8. size(1280,720);
  9. for(int i = 0; i < rows; i++)
  10. {
  11. for(int j = 0; j < cols; j++)
  12. {
  13. myGrid[i][j] = 0;
  14. }
  15. }
  16. }
  17.  
  18. void drawShape()
  19. {
  20. int x = 0;
  21. noStroke();
  22. while (x < 255)
  23. {
  24. frameRate(5);
  25. fill(random(255),random(255),random(255),random(255));
  26. ellipse(random(1280)*2,random(720)*2, random(50), random(50));
  27. rect(random(1280)*5, random(720)*5, x, x);
  28. x++;
  29. }
  30. }
  31.  
  32.  
  33. void draw()
  34. {
  35. //drawShape();
  36. for(int i = 0; i < rows; i++)
  37. {
  38. for(int j = 0; j < cols; j++)
  39. {
  40. myGrid[i][j];
  41. ellipse(
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement