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.

132 APPLE II COMPUTER GRAPHICSAs we draw the wedges of the pie, our progress around the circle isproportion<strong>al</strong> to the amount of the data graphed so fa r. That is, if we areone-third of the way around the circle, then the accumulated amount ofdata <strong>al</strong>ready graphed is one-third of the tot<strong>al</strong> to be graphed. So, as we goaround, line 37© accumulates the graphed data in ACC, and line 38©c<strong>al</strong>culates the fraction of a full rotation. (Remember, in radian measure6.28 represents a full rotation.)Line 39© draws the line from the center of the circle (14©,8©) to the pointon the circle at the correct rotation.Round It OutYou have seen sever<strong>al</strong> fairly powerfu l schemes fo r graphing. They <strong>al</strong>l producea reasonable result on the screen, but what about g<strong>et</strong>ting a printoutof the graph? As with most any programming problem, where there's a willthere's a way, but the most practic<strong>al</strong> solution lies in pri nter hardware.There are sever<strong>al</strong> items presently on the mark<strong>et</strong> which <strong>al</strong>low you to"dump" the Hi-Res screen to a matrix printer, such as "GRAFTRAX*" forEpson printers, or the "GRAPPLER**" interface which works for most dotmatrixmachines. If you have, or acquire such an item, it comes withinstructions for dumping the Hi-Res screen.The programs presented here are designed to l<strong>et</strong> you plot your own datawith a minimum of modifications. After yeiu have used these routines for atime they will become clearer to you, and improvements will begin tosuggest themselves. Down that path lies hours of both creativity and frustration.Have fu n!VocabularyBar chartCircle graphLine graphPie chart*Graftrax is a trademark of Epson of America.**Gr<strong>apple</strong>r is a trademark of Microtech, Inc.

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

Saved successfully!

Ooh no, something went wrong!