Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. size(900,900);//Sets the size of the canvas.
  2. background(#F2ABF1);//Colors the background pink.
  3. final int SIZE = width - (width*1/3);//Finalizes a "size" variable
  4. final int X_CENTRE = (width/2);//Creates a value of the width centre of the canvas.
  5. final int Y_CENTRE = (height/2);//Creates a value of the height centre of the canvas.
  6. int eyeSpacing = SIZE/20;//Sets a value for the spacing between the eyes.
  7. int wingSpacing = SIZE/6;//Sets a value for the spacing between the wings.
  8. int eye_Size = SIZE/20;//Sets the size of the eyes.
  9. int wingWidth = SIZE/2;//Sets the width of the wing.
  10. int wingHeight = SIZE/4;//Sets the height of the wing.
  11.  
  12.  
  13. strokeWeight(10);//Sets the thickness of the shape.
  14. fill(#39F7FF);//Colors the wings blue.
  15. ellipse(X_CENTRE-wingSpacing,Y_CENTRE*1.2+15,wingWidth,wingHeight);//Draws the left wing.
  16. ellipse(X_CENTRE+wingSpacing,Y_CENTRE*1.2+15,wingWidth,wingHeight);//Draws the right wing.
  17.  
  18.  
  19. fill(#F7E00A);//Colors the body yellow.
  20. strokeWeight(14);//Sets the thickness of the shape.
  21. ellipse(X_CENTRE,Y_CENTRE*1.2,SIZE*0.5,SIZE*0.8);//Draws the body of the bee.
  22.  
  23.  
  24. fill(0);//Colors the triangle black.
  25. triangle(X_CENTRE-25,Y_CENTRE*1.2+245,X_CENTRE+25,Y_CENTRE*1.2+245,X_CENTRE,Y_CENTRE*1.2+265);//Draws a triangle (the spike) in the bottom of the body.
  26.  
  27.  
  28. strokeWeight(30);//Sets the thickness of the shape.
  29. line(X_CENTRE-SIZE/4.3,Y_CENTRE*1.2+15,X_CENTRE+SIZE/4.21,Y_CENTRE*1.2+15);//Draws the middle stripe on the body.
  30. line(X_CENTRE-SIZE/4.32,Y_CENTRE*1.2-50,X_CENTRE+SIZE/4.3,Y_CENTRE*1.2-50);//Draws the top stripe on the body.
  31. line(X_CENTRE-SIZE/4.5,Y_CENTRE*1.2+77,X_CENTRE+SIZE/4.45,Y_CENTRE*1.2+77);//Draws the bottom stripe on the body.
  32.  
  33. strokeWeight(10);//Sets the thickness of the shape.
  34. fill(0);//Colors the eyes black.
  35. circle(X_CENTRE-eyeSpacing,Y_CENTRE/1.3,eye_Size);//Draws the left eye.
  36. circle(X_CENTRE+eyeSpacing,Y_CENTRE/1.3,eye_Size);//Draws the right eye.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement