Draw.Line (10, 1, 25, 50, 25)
Draw.Line (100, 100, 25, 50, 25)
Draw.Line (25, 50, 25, 100, 25)
Draw.Line (10, 75, 40, 100, 25)
Draw.FillOval (25, 125, 25, 25, 25)
fr1 := Pic.New (0, 0, 600, 600)
Draw.Cls
Draw.Line (25, 1, 25, 50, 155)
Draw.Line (25, 100, 25, 50, 155)
Draw.Line (25, 50, 25, 100, 155)
Draw.Line (10, 100, 40, 75, 155)
Draw.FillOval (25, 125, 25, 25, 155)
fr2 := Pic.New (0, 0, 600, 600)
Draw.Cls
% Frame 3
Draw.Line (45, 1, 45, 50, 155)
Draw.Line (45, 50, 10, 95, 155)
Draw.Line (45, 50, 45, 100, 155)
Draw.Line (30, 100, 65, 75, 155)
Draw.FillOval (45, 125, 25, 25, 155)
fr3 := Pic.New (0, 0, 600, 600)
Draw.Cls
%Frame 4
Draw.Line (45, 1, 45, 50, 7)
Draw.Line (45, 1, 45, 50, 7)
Draw.Line (45, 50, 45, 100, 7)
Draw.Line (30, 100, 65, 50, 7)
Draw.FillOval (45, 125, 25, 25, 7)
fr4 := Pic.New (0, 0, 600, 600)
Draw.Cls
loop
for i : 0 .. 600 by 25
Pic.Draw (fr1, i, 0, picCopy)
Time.Delay (100)
Pic.Draw (fr2, i, 0, picCopy)
Time.Delay (100)
Draw.Cls
end for
% Animate the frames to make the stick man move back to where he started
for decreasing i : 600 .. 0 by 25
Pic.Draw (fr1, i, 0, picCopy)
Time.Delay (100)
Pic.Draw (fr2, i, 0, picCopy)
Time.Delay (100)
Draw.Cls
end for
end loop
|