Summary Graphics
- Creating graphics is done on the graph screen, not the home screen.
- On the graph screen, locations are given either as point or pixel coordinates.
- Pixel coordinates start with (0,0) at the top left corner, like on the homescreen, but increment in individual pixels.
- Point coordinates depend on the window dimensions.
- You can adjust the window dimensions by manipulating the window variables and/or by using the zoom commands.
- You can also use the format commands to turn the axes off and other related things.
- You can save the window dimensions, format options, and other related things in a GBD. (Graph Database)
- Once you have the graph screen set up, you can draw on it using the draw commands.
- You can erase the graph screen with the ClrDraw command, and you can save what is on the graph screen in a Pic.(Picture)
- Unfortunately Pics can only store the entire screen. They also don't force pixels that are already black to become white; sometimes this can be a good thing.
- One particularly creative and effective way to create sprites is known as the text sprite method.This involves overlapping text to create sprites quickly.
Commands Introduced
- StorePic, RecallPic, StoreGDB, RecallGDB
- Pxl-On(, Pxl-Off(, Pxl-Change(, Pxl-Test(, Pt-On(, Pt-Off(, Pt-Change(
- ZStandard, ZInteger, FnOff, FnOn, AxesOn, AxesOff
- Horizontal, Vertical, Line(, Circle, DrawF, DrawInv, Tangent(, Shade(, Text(
<< Using Pictures | Table of Contents | Chapter Exercises >> |