Advertisement
Nojus_Globys

snowman

Jan 10th, 2023 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.13 KB | None | 0 0
  1. void setup () {
  2.     size (800,  600);
  3.     background (200, 230, 230);
  4.     noStroke ();
  5.     fill (255, 255, 255);
  6.     circle (400, 300, 200); // vidurys
  7.     circle (400, 150, 150); // viršus
  8.     circle (400, 450, 250); // apačia
  9.  
  10.     fill (0, 0, 0);
  11.     circle (370, 150, 30); // kairė akis
  12.     circle (430, 150, 30); // dešinė akis
  13.    
  14.     // nosis
  15.     fill (255, 170, 0);
  16.     circle (400, 170, 20);
  17.    
  18.     // burna
  19.     //strokeWeight (10);
  20.     //stroke (0, 0, 0);
  21.     //line (390, 195, 410, 195);
  22.    
  23.     // sagos
  24.     //noStroke (); // tik tuo atveju, jei piešiu burną kaip liniją
  25.     fill (0, 0, 0);
  26.     circle (400, 250, 20);
  27.     circle (400, 300, 20);
  28.     circle (400, 350, 20);
  29.     circle (400, 400, 20);
  30.     circle (400, 450, 20);
  31.    
  32.     // rankos
  33.     strokeWeight (15);
  34.     stroke (130, 90, 0);
  35.     line (500, 300, 600, 200);
  36.     line (300, 300, 200, 200);
  37.    
  38.     // kojos
  39.     noStroke ();
  40.     fill (255, 255, 255);
  41.     circle (310, 540, 70);
  42.     circle (490, 540, 70);
  43.    
  44.     // skrybėlė
  45.     fill (0, 0, 0);
  46.     rect (320, 90, 160, 20, 10);
  47.     rect (350, 10, 100, 100, 10);
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement