Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (simple polygon)
- #1=0 (start angle)
- #2=222 (number of sides)
- #3=1 (radius)
- G20 G90
- g64p.0003Q.0003
- G0 X#3 Y0
- F40000
- o100 repeat [#2+1]
- G1 X[cos[#1] * #3] Y[sin[#1] * #3]
- #1 = [#1 + 360.0 / #2]
- o100 endrepeat
- m30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement