Remove colour attributes from body and strip most of the font tags out

This commit is contained in:
James Gregory 2013-12-30 13:57:02 +11:00
commit c1f88ddb41
362 changed files with 1632 additions and 1706 deletions

View file

@ -24,7 +24,7 @@
<!--CHAPTER=49//-->
<!--PAGES=924-929//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//--></HEAD><BODY LINK=#0000FF ALINK=#000099 VLINK=#0000FF BGCOLOR=#FFFFFF>
<!--UNASSIGNED2//--></HEAD><body>
<CENTER>
<TABLE BORDER>
@ -36,15 +36,15 @@
</TABLE>
</CENTER>
<P><BR></P>
<H3><A NAME="Heading6"></A><FONT COLOR="#000077">Animation</FONT></H3>
<H3><A NAME="Heading6"></A>Animation</H3>
<P>Gosh. There&rsquo;s just no way I can discuss high-level animation fundamentals in any detail here; I could spend an entire (and entirely separate) book on animation techniques alone. You might want to have a look at Chapters 43 through 46 before attacking the code in this chapter; that will have to do us for the present volume. (I will return to <I>3-D</I> animation in the next chapter.)</P>
<P>Basically, I&rsquo;m going to perform page flipped animation, in which one page (that is, a bitmap large enough to hold a full screen) of display memory is displayed while another page is drawn to. When the drawing is finished, the newly modified page is displayed, and the other&mdash;now invisible&mdash;page is drawn to. The process repeats ad infinitum. For further information, some good places to start are <I>Computer Graphics</I>, by Foley and van Dam (Addison-Wesley); <I>Principles of Interactive Computer Graphics</I>, by Newman and Sproull (McGraw Hill); and &ldquo;Real-Time Animation&rdquo; by Rahner James (January 1990, <I>Dr. Dobb&rsquo;s Journal</I>).</P>
<P>Some of the code in this chapter was adapted for Mode X from the code in Chapter 44&mdash;yet another reason to read that chapter before finishing this one.</P>
<H3><A NAME="Heading7"></A><FONT COLOR="#000077">Mode X Animation in Action</FONT></H3>
<H3><A NAME="Heading7"></A>Mode X Animation in Action</H3>
<P>Listing 49.5 ties together everything I&rsquo;ve discussed about Mode X so far in a compact but surprisingly powerful animation package. Listing 49.5 first uses solid and patterned fills and system-memory-to-screen-memory masked copying to draw a static background containing a mountain, a sun, a plain, water, and a house with puffs of smoke coming out of the chimney, and sets up the four alignments of a masked kite image. The background is transferred to both display pages, and drawing of 20 kite images in the nondisplayed page using fast masked copying begins. After all images have been drawn, the page is flipped to show the newly updated screen, and the kites are moved and drawn in the other page, which is no longer displayed. Kites are erased at their old positions in the nondisplayed page by block copying from the background page. (See the discussion in the previous chapter for the display memory organization used by Listing 49.5.) So far as the displayed image is concerned, there is never any hint of flicker or disturbance of the background. This continues at a rate of up to 60 times a second until Esc is pressed to exit the program. See Figure 49.1 for a screen shot of the resulting image&mdash;add the animation in your imagination.
</P>
<P><A NAME="Fig1"><!-- </A><A HREF="javascript:displayWindow('images/49-01.jpg',227,175 )"> --><IMG SRC="images/49-01.jpg"><BR><!-- </A>
<BR><A HREF="javascript:displayWindow('images/49-01.jpg',227,175)"> --><FONT COLOR="#000077"><B>Figure 49.1</B></FONT></A>&nbsp;&nbsp;<I>An animated Mode X screen.</I>
<BR><A HREF="javascript:displayWindow('images/49-01.jpg',227,175)"> --><B>Figure 49.1</B></A>&nbsp;&nbsp;<I>An animated Mode X screen.</I>
</P>
<P><B>LISTING 49.5 L49-5.C</B></P>
<!-- CODE //-->
@ -298,7 +298,7 @@ void MoveObject(AnimatedObject * ObjectToMove) {
<hr width="90%" size="1" noshade>
<div align="center">
<font face="Verdana,sans-serif" size="1">Graphics Programming Black Book &copy; 2001 Michael Abrash</font>
Graphics Programming Black Book &copy; 2001 Michael Abrash
</div>
<!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->