Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ROND[] listRond;
- LIGNE[] listLigne;
- void setup()
- {
- size(500, 500);
- frameRate(60);
- fond();
- listRond = new ROND[18];
- for (int i = 0 ; i < listRond.length ; i++)
- {
- listRond[i] = new ROND(80 + random(370), 80 + random(370), color(random(255), random(255), random(255), random(255)), 10 + random(100));
- }
- listLigne = new LIGNE[20];
- for (int i = 0 ; i < listLigne.length ; i++)
- {
- listLigne[i] = new LIGNE(80 + random(370), 80 + random(370), color(random(255), random(255), random(255)), 1 + random(5));
- }
- }
- void draw()
- {
- fond();
- for (int i = 0 ; i < listRond.length ; i++)
- {
- listRond[i].mouv();
- listRond[i].afficher();
- }
- for (int i = 0 ; i < listLigne.length ; i++)
- {
- listLigne[i].mouv();
- listLigne[i].afficher();
- }
- }
- void fond()
- {
- background(220, 220, 220);
- noStroke(); fill(255, 210, 80);
- quad(500,0, 450,0, 0,350, 0, 550);
- fill(0, 220, 130, 100);
- quad(500,480, 500,300, 230,0, 150,0);
- stroke(0); noFill();
- strokeWeight(20);
- ellipse(250, 250, 420, 420);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement