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.

CHAPTER 9-Hl-RES COLOR 91notice how the 28©-dot model led into the 4©-byte model with no troubleat <strong>al</strong>l when you began to digitize the figure.Only 1411When working with colors on the Hi-Res screen, most game programmersconsider the width of the screen to be composed of only 14© availabledots. Clearly, it requires two adjacent dots to display white, and if youwould display a line of green dots, then b<strong>et</strong>ween each green dot there is ablack one, so you can see that it takes two dots to display a color <strong>al</strong>so. Ifyou look back at Figure 9-2, the picture of the Hi-Res <strong>apple</strong>, you will se<strong>et</strong>hat only every second dot was used for the colored portions. Since a unitof color requires two dots, you may reasonably interpr<strong>et</strong> the screen to<strong>al</strong>low only 14© units of color across.Further, when you plotted the <strong>apple</strong> in different positions, the colorschanged depending on where it was plotted. In order to maintain theorigin<strong>al</strong> colors, any dot that was origin<strong>al</strong>ly even must <strong>al</strong>ways be plotted asan even dot, and the same idea fo llows for the odd dots. To accomplishthat, the figure must be moved in multiples of two dots at a time, so for thisreason <strong>al</strong>so, there are only 14© possible positions across the screen.Would Yau Believe 5611?Despite what the Apple documentation says, there are actu<strong>al</strong>ly 56© dotsavailable across the Hi-Res screen. By now you probably think we ar<strong>et</strong>ot<strong>al</strong>ly bonkers, so we will prove our point by demonstration. First, enterthe Monitor, and then the Hi-Res mode, by typing:CALL -151C5C57Next, clear the decks fo r action by typing:2 : 21< 2 . JFFEMIf this seems obscu re to you, perhaps another reading of the Monitor andSoft Switch chapters is needed.- Figure 9-3 shows the hex address of the fi rst byte for each of the fi rst 14screen lines, and the dot and bit patterns for 14 v<strong>al</strong>ues to be placed inthose locations.

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

Saved successfully!

Ooh no, something went wrong!