Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Polyspiral/SPL/polyspiral.spl
Normal file
22
Task/Polyspiral/SPL/polyspiral.spl
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
width,height = #.scrsize()
|
||||
#.angle(#.degrees)
|
||||
#.scroff()
|
||||
incr = 0
|
||||
>
|
||||
incr = (incr+0.05)%360
|
||||
x = width/2
|
||||
y = height/2
|
||||
length = 5
|
||||
angle = incr
|
||||
#.scrclear()
|
||||
#.drawline(x,y,x,y)
|
||||
> i, 1..150
|
||||
x += length*#.cos(angle)
|
||||
y += length*#.sin(angle)
|
||||
#.drawcolor(#.hsv2rgb(angle,1,1):3)
|
||||
#.drawline(x,y)
|
||||
length += 3
|
||||
angle = (angle+incr)%360
|
||||
<
|
||||
#.scr()
|
||||
<
|
||||
Loading…
Add table
Add a link
Reference in a new issue