Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Animation/Mathematica/animation.math
Normal file
10
Task/Animation/Mathematica/animation.math
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
mystring = "Hello World! ";
|
||||
Scroll[str_, dir_] := StringJoin @@ RotateLeft[str // Characters, dir];
|
||||
GiveString[dir_] := (mystring = Scroll[mystring, dir]);
|
||||
CreateDialog[{
|
||||
DynamicModule[{direction = -1},
|
||||
EventHandler[
|
||||
Dynamic[TextCell[
|
||||
Refresh[GiveString[direction], UpdateInterval -> 1/8]],
|
||||
TrackedSymbols -> {}], {"MouseClicked" :> (direction *= -1)}]]
|
||||
}];
|
||||
Loading…
Add table
Add a link
Reference in a new issue