Sunday, January 3, 2010
HW6--95160111--(Image Animating Application)
Comment:
In this exercise, the picture will move
horizontally or vertically and
it can fade in or fade out.
It is difficult to control this part,
for example is that the picture horizontal:
if(mode ==0 && 150+i<550)
i=i+20;
else
mode=1;
if(mode ==1 && 150+i>0)
i=i-20;
else
mode=0;
Besides, Ian told me can use a variable int mode = 0;
to operate and that it automatically. This program that
me thinking of how I could control the effects that I chose.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment