Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Animate-a-pendulum/EasyLang/animate-a-pendulum.easy
Normal file
12
Task/Animate-a-pendulum/EasyLang/animate-a-pendulum.easy
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
ang = 45
|
||||
on animate
|
||||
clear
|
||||
move 50 50
|
||||
circle 1
|
||||
x = 50 + 40 * sin ang
|
||||
y = 50 + 40 * cos ang
|
||||
line x y
|
||||
circle 6
|
||||
vel += sin ang / 5
|
||||
ang += vel
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue