Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size(400,400);
- background(255);
- ellipse(200,200,100,100);
- //lisser les traits
- smooth();
- strokeWeight(4);
- ellipse(100,100,80,80);
- //un point
- point(200,200);
- //un quadrilatère
- quad(5, 5, 5, 20, 40, 40, 60, 0);
- //remplissage avec transparence
- fill(255,10,10,100);
- //couper les jointures
- strokeJoin(BEVEL);
- //une forme en triangle strip
- beginShape(TRIANGLE_STRIP);
- vertex(230, 220);
- vertex(385, 220);
- vertex(385, 375);
- vertex(230, 275);
- vertex(200, 375);
- vertex(180, 375);
- endShape(CLOSE);
- //une forme normale : triangle
- beginShape();
- vertex(30, 20);
- vertex(85, 20);
- vertex(85, 75);
- endShape();
- //avec des courbes
- beginShape();
- curveVertex(130, 20);
- curveVertex(185, 20);
- curveVertex(185, 75);
- curveVertex(155, 105);
- curveVertex(120, 150);
- curveVertex(100, 130);
- endShape(CLOSE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement