Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
11
Task/Archimedean-spiral/MiniScript/archimedean-spiral-1.mini
Normal file
11
Task/Archimedean-spiral/MiniScript/archimedean-spiral-1.mini
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
clear
|
||||
x0 = gfx.width / 2
|
||||
y0 = gfx.height / 2
|
||||
gfx.clear color.white
|
||||
for t in range(0, 70 * pi, 0.1)
|
||||
r = 3.2+ 1.5 * t
|
||||
x = r * cos(t) + gfx.width / 2
|
||||
y = r * sin(t) + gfx.height / 2
|
||||
gfx.line x0, y0, x, y, color.black,2
|
||||
x0 = x; y0 = y
|
||||
end for
|
||||
13
Task/Archimedean-spiral/MiniScript/archimedean-spiral-2.mini
Normal file
13
Task/Archimedean-spiral/MiniScript/archimedean-spiral-2.mini
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import "turtle"
|
||||
radToDegrees = function(rad)
|
||||
return 180 * rad / pi
|
||||
end function
|
||||
|
||||
clear
|
||||
print Turtle.displayNum
|
||||
display(Turtle.displayNum).clear
|
||||
t = new Turtle
|
||||
for i in range(0, 50, 0.04)
|
||||
t.forward i
|
||||
t.left radToDegrees(pi/20)
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue