Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. PFont myFont; // this variable holds a font
  2. PGraphics myPGraphic; // the variable holds a graphic
  3.  
  4. String myText = "FUN";
  5. int myUnit = 10;
  6.  
  7.  
  8. // this runs once at the begining
  9. void setup() {
  10. size(960, 540);
  11. noStroke();
  12.  
  13. for (int y = 0; y < height; y+=myUnit) {
  14. for (int x = 0; x < width; x+=myUnit) {
  15. ellipse(x, y, 5, 5);
  16. }
  17. }
  18. }
  19.  
  20. //this runs forever
  21. void draw() {
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement