blob: 6c7306b6473435e5fd0fe626ef8ce857e63c7c84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
void draw() {
fill(255);
noStroke();
beginShape(TRIANGLE_FAN);
vertex(50,50);
for (int x=0;x<=8;x++) {
vertex(50+cos(x*PI/5)*30,50+sin(x*PI/5)*30);
}
endShape(CLOSE);
}
|