Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int SIZE = width - (width*1/3);//Finalizes a "size" variable
- int X_CENTRE = (width/2);//Creates a value of the width centre of the canvas.
- int Y_CENTRE = (height/2);//Creates a value of the height centre of the canvas.
- int eyeSpacing = SIZE/20;//Sets a value for the spacing between the eyes.
- int wingSpacing = SIZE/6;//Sets a value for the spacing between the wings.
- int eye_Size = SIZE/20;//Sets the size of the eyes.
- int wingWidth = SIZE/2;//Sets the width of the wing.
- int wingHeight = SIZE/4;//Sets the height of the wing.
- void setup()
- {
- size(900,900);//Sets the size of the canvas.
- background(#F2ABF1);//Colors the background pink.
- }
- void draw()
- {
- drawBee();
- }
- void setSizeXandY()
- {
- }
- void drawBee()
- {
- strokeWeight(10);//Sets the thickness of the shape.
- fill(#39F7FF);//Colors the wings blue.
- ellipse(X_CENTRE-wingSpacing,Y_CENTRE*1.2+15,wingWidth,wingHeight);//Draws the left wing.
- ellipse(X_CENTRE+wingSpacing,Y_CENTRE*1.2+15,wingWidth,wingHeight);//Draws the right wing.
- fill(#F7E00A);//Colors the body yellow.
- strokeWeight(14);//Sets the thickness of the shape.
- ellipse(X_CENTRE,Y_CENTRE*1.2,SIZE*0.5,SIZE*0.8);//Draws the body of the bee.
- fill(0);//Colors the triangle black.
- 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.
- strokeWeight(30);//Sets the thickness of the shape.
- 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.
- 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.
- 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.
- strokeWeight(10);//Sets the thickness of the shape.
- fill(0);//Colors the eyes black.
- circle(X_CENTRE-eyeSpacing,Y_CENTRE/1.3,eye_Size);//Draws the left eye.
- circle(X_CENTRE+eyeSpacing,Y_CENTRE/1.3,eye_Size);//Draws the right eye.
- }
- void calcDimensions()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement