Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int yardLine, people, x=130, row, collum=175, count;
- color orange = color(242, 163, 2);
- color blue = color(0, 255, 0);
- int randomNumber;
- void setup()
- {
- size(800, 500);
- background(0);
- noStroke();
- //dirt
- fill(#E8DBB7);
- rect(0, 250, 800, 250);
- //stand
- fill(#794F01);
- rect(75, 125, 650, 175);
- //moon
- fill(255);
- ellipse(50, 75, 75, 75);
- //field
- fill(#205A1F);
- quad(75, 300, 725, 300, 685, 450, 45, 450);
- fill(255);
- fill(0, 0, 255);
- textSize(27);
- text("Seven Lake Spartans", 100, 50);
- }
- void draw()
- {
- yardLines();
- crowd();
- }
- void yardLines()
- {
- while (yardLine<=10)
- {
- textSize(15);
- fill(255);
- text("" + yardLine, x-10, 425);
- text("" + yardLine, x+10, 325);
- stroke(255);
- strokeWeight(3);
- line(x-26, 450, x, 300);
- yardLine = yardLine+1;
- x+=50;
- }
- }
- void crowd()
- {
- int row= 150;
- while (row<300)
- {
- randomNumber=(int)random(1,3);
- if (randomNumber ==1)
- {
- fill(0,0,255);
- }
- if(randomNumber==2)
- {
- fill(orange);
- collum=112;
- while (collum<700)
- {
- ellipse(collum, row, 18, 18);
- collum+=30;
- }
- row+=30;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement