Discuss Scratch

Puffin43
Scratcher
5 posts

need pen spiral art script help

plz help me with my scripts im making a project of spiral art using pen
KingOfAwesome58219
Scratcher
1000+ posts

need pen spiral art script help

Heres how you draw a circle:
when green flag clicked
set [i v] to (0) // i is the angle
set [radius v] to (10)
pen up
repeat (361)
go to x: (([sin v] of (i)) * (radius)) y: (([cos v] of (i)) * (radius)) // sin and cos take an angle (i) and return an x and y ratio
change [i v] by (1)
pen down
end
You can take this and slowly increase the radius to form a spiral:
when green flag clicked
set [i v] to (0)
set [radius v] to (0)
pen up
repeat (361)
go to x: (([sin v] of (i)) * (radius)) y: (([cos v] of (i)) * (radius))
change [i v] by (1)
change [radius v] by (1)
pen down
end



Powered by DjangoBB

Standard | Mobile