xxxxxxxxxx
function setup() {
createCanvas(500, 500); //set screen size to match our GRID
rectMode(CENTER); //set origin of rectangles to be centered
angleMode(DEGREES);
background(50); //change to whatever color you'd like
//ALL CODE FOR YOUR SETUP MUST GO BEFORE THE CLOSE BRACKET:
}//close setup
function draw() {
//background
fill(255, 0, 0);
noStroke();
triangle(-100, 250, 500, -50, 500, 550);
fill(50);
triangle(340, 250, 450, 0, 450, 500);
rect(500, 250, 100, 500);
//lines
strokeWeight(45);
stroke(255,0,0);
line(0, 175, 400, 0);
//
strokeWeight(3);
stroke(250);
line(0, 175, 400, 0);
//
strokeWeight(2);
stroke(255);
line(0, 237, 355, 217);
//
strokeWeight(3);
stroke(255);
line(0, 280, 427, 450);
//
strokeWeight(3);
stroke(255);
line(-100, 190, 500, -72);
//
strokeWeight(3);
stroke(255);
line(-100, 250, 500, 550);
//end of line grouping
//Start of explosive puck grenades
//start of explosive puck grenade 1
//body of top puck 1
fill(255);
strokeWeight(2);
stroke(0);
ellipse(160, 175, 100, 100);
//start of explosive puck grenade 2
fill(255);
ellipse(200, 350, 100, 100);
//start of main explosive puck with emotion
fill(255);
ellipse(360, 235, 140, 140);
//face of puck
// Charging levers
//#1
push();
rotate(-10);
noStroke();
rect(125, 147, 40, 40);
rotate(-2);
noStroke();
rect(122, 330, 40, 40);
rotate(-8);
noStroke();
rect(250, 270, 50, 50);
pop();
//#2
push();
rotate(30);
noStroke();
rect(170, 70, 15, 85);
rotate(1);
noStroke();
rect(295, 200, 15, 85);
rotate(-2);
noStroke();
rect(347, 33, 20, 100)
pop();
fill(0);
//
fill(0);
arc(50, 50, 100, 100, 0, PI + QUARTER_PI, CHORD);
//ALL CODE FOR YOUR CHARACTER MUST GO BEFORE THE CLOSE BRACKET:
}//close draw