```
n = 200
m = 2
r = 300
def setup():
size(600,600)
def draw():
background(0)
stroke(255)
for i in range(n):
a = TWO_PI/n
line(width/2 + cos(a*i)*r, height/2 + sin(a*i)*r, width/2 + cos(a*i*m)*r, height/2 + sin(a*i*m)*r)
line(width/2 + cos(a*i)*r, height/2 + sin(a*i)*r, width/2 + cos(a*(i+1))*r, height/2 + sin(a*(i+1))*r)
```

1 Like

I guess you can get rid of `def setup`

and `def draw`

and make it a static program

edit: here

```
n = 200
m = 2
r = 300
size(600,600)
background(0)
stroke(255)
for i in range(n):
a = TWO_PI/n
line(width/2 + cos(a*i)*r, height/2 + sin(a*i)*r, width/2 + cos(a*i*m)*r, height/2 + sin(a*i*m)*r)
line(width/2 + cos(a*i)*r, height/2 + sin(a*i)*r, width/2 + cos(a*(i+1))*r, height/2 + sin(a*(i+1))*r)
```

1 Like