begin text t1 20 40 "a stack with five data elements" blue 20 stack s1 150 150 5 push pop stack on top darkgreen violet end delay 900 delete t1 delay 500 text t2 20 40 "pop is called on the stack removing the word 'push'" red 20 delay 900 pop s1 delay 800 delete t2 delay 500 text t3 20 40 "the word 'first' is now added to the top of the stack using push" blue 20 delay 800 push s1 "first" delay 900 delete t3 delay 500 text t4 20 40 "another stack is created with 3 data elements" red 20 delay 400 stack s2 220 150 3 ABC "Do Re Mi Fa So La Ti Do" 123 violet darkgreen delay 1000 delete t4 delay 500 text t5 20 40 "Two pops are called on the second stack leaving only '123'" blue 20 delay 800 pop s2 delay 900 pop s2 delay 800 delete t5 delay 500 text t6 20 40 "the color of the text is changed to darkorange in the first stack using changeParam" red 16 delay 600 changeParam s1 textcolor darkorange delay 500 delete t6 delay 800 text t7 10 40 "the color of the outline in the second stack is changed to cyan using changeParam" blue 16 delay 600 changeParam s2 color cyan delay 600 delete t7 delay 500 text t8 10 40 "the first stacked is moved down 50 and to the left 30 using moveRelative" red 16 delay 700 moveRelative s1 -30 50 delay 700 delete t8 delay 500 begin text t9 30 40 "the two stacks are grouped together" blue 18 text t10 30 60 "thier textcolors are changed to deeppink" blue 18 text t11 30 80 "they are moved 40 down and 40 to the right" blue 18 end delay 600 groupObject s 2 s1 s2 changeParam s textcolor deeppink delay 800 moveRelative s 40 40 delay 600 begin delete t9 delete t10 delete t11 end delay 600 text stop 40 500 "END OF DEMO" black 30