June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
19
Task/Active-object/Lingo/active-object-2.lingo
Normal file
19
Task/Active-object/Lingo/active-object-2.lingo
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
global gIntegrator
|
||||
|
||||
-- entry point
|
||||
on startMovie
|
||||
gIntegrator = script("Integrator").new("sin(PI * t)")
|
||||
timeout().new("timer", 2000, #step1)
|
||||
end
|
||||
|
||||
on step1 (_, timer)
|
||||
gIntegrator.input("0.0")
|
||||
timer.timeoutHandler = #step2
|
||||
timer.period = 500
|
||||
end
|
||||
|
||||
on step2 (_, timer)
|
||||
gIntegrator.stop()
|
||||
put gIntegrator.output()
|
||||
timer.forget()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue