Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- size(500, 800);
- background(#542437);
- for (int x=-10; x < width; x +=8) {
- drawStrull(x);
- }
- }
- void draw() {
- }
- void drawStrull(int _x) {
- float x = _x;
- float marge = 20;
- float marge_y = 10;
- fill(#C02942, 150 + random(50));
- stroke(#542437, 120);
- beginShape();
- curveVertex(x, 0);
- curveVertex(x + random(marge/2), 0);
- curveVertex(x + random(marge/2), 200+random(marge_y));
- curveVertex(x + random(marge/2), 400+random(marge_y));
- curveVertex(x + random(marge/2), height*.65);
- curveVertex(x + random(marge, 2*marge), height*.65);
- curveVertex(x + random(marge, 2*marge), 450+random(marge_y));
- curveVertex(x + random(marge, 2*marge), 150+random(marge_y));
- curveVertex(x + random(marge, 2*marge), 0);
- curveVertex(x + random(marge, 2*marge), 0);
- endShape(CLOSE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement