Advertisement
Nojus_Globys

may24

May 24th, 2023
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.  
  2. int counter = 0;
  3.  
  4. void setup () {
  5.   size (1200, 800);
  6.   textSize (128);
  7.   frameRate (5); // sulėtina draw veikimą
  8. }
  9.  
  10. void draw () {
  11.   if (counter == 9)
  12.     stop ();
  13.  
  14.   circle (random (width), random (height), 100);
  15.   ++counter; // counter padidina per vienetą
  16.  
  17.   fill (0);
  18.   rect (1000, 100, 190, 110);
  19.   fill (255);
  20.   text (counter, 1000, 200);
  21.  
  22.   //if (circles == 10)
  23.   //  stop;
  24.   //if ()
  25.   //fill (255);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement