12.07.2015 Views

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

156 APPLE II COMPUTER GRAPHICSso may slow the animation since movement is <strong>al</strong>ways delayed until thenext vertic<strong>al</strong> blanking interv<strong>al</strong>. Having to wait for less than one-sixti<strong>et</strong>h of asecond may not seem like much to you, but to your Apple it is quite a longtime. We will just have to wait and see what new techniques are developedfor the Apple·lie.VocabularyExclusive OR (EOR)Parti<strong>al</strong> ModificationPre-C<strong>al</strong>culationPre-ShiftVertic<strong>al</strong> BlankingVertic<strong>al</strong> Blanking Location (VBL)Exercises1. Suppose that a figure beginning at (2(/)(/), 19(/J) on the Hi-Res screentravels with a slope of one-h<strong>al</strong>f (moves up one and right two eachtime). Develop a table containing its X-Y coordinate pairs from itsorigin until it runs into the TOP of the screen. (In the course ofmoving it will contact the right side of the screen. At that time itshould begin to move up one and left two with each movement.)2. Use the table developed in Exercise 1 to animate the square from theshape table discussed in this chapter.3. Use parti<strong>al</strong> mod ification to cycle through ten digits on the Hi-Resscreen.4. Create a shape table containing a rectangle, its horizont<strong>al</strong> and vertic<strong>al</strong>pre-shifts, its two diagon<strong>al</strong> (up one, over one) pre-shifts, and the preshiftsrequired to move the rectangle up one, right two or up one, lefttwo. (Use a <strong>graphics</strong> editor if you own one!)5. Use each of the pre-shifts developed in Exercise 4 to move the rectangle.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!