Glimmr Canvas-Based Drawing
version 2/101030 by Erik Temple
Version 2/101030 of Glimmr Canvas-Based Drawing (for Glulx only) by Erik Temple begins here.
"A framework for drawing graphics of various types--from sprite images to painted text--to a Glulx graphics window. Takes an object-oriented approach, with graphic elements represented as individual objects."
[Add intro texts for compiled versions of examples.]
- Part - Preliminaries
- Part - The canvas
- Chapter - Canvas properties related to the window
- Chapter - The null canvas
- Chapter - Concealing canvas objects
- Part - Element Definition
- Chapter - Display status
- Chapter - Concealing elements
- Chapter - Null element
- Chapter - Element properties related to the canvas
- Chapter - Element properties related to the window
- Chapter - Element properties related to mouse input
- Part - Extensions to g-windows
- Chapter - Graphics g-window properties related to the canvas
- Chapter - Private naming
- Chapter - Relating elements directly to windows
- Part - Default canvas-based drawing rule
- Chapter - Calculating the scaling factors
- Chapter - Offset calculation
- Chapter - Window-framing adjustment
- Section - Command for resizing the canvas to the window
- Section - Commands for centering the window frame on specific points
- Chapter - Drawing the canvas background
- Chapter - Element Drawing
- Part - Useful phrases
- Part - Graphic Hyperlinks
- Chapter - Graphlink management (for use with Glimmr Graphic Hyperlinks by Erik Temple)
- Chapter - Graphlink management (for use without Glimmr Graphic Hyperlinks by Erik Temple)
- Part - Sprites
- Chapter - Sprite scaling rule
- Chapter - Sprite element display rule
- Chapter - The primitive base class
- Section - Scaling rule for primitives
- Section - Centering algorithm for primitives
- Section - Rectangle Primitive
- Section - Box primitive
- Section - Stroked rectangle primitive
- Section - Line primitive
- Section - Point primitive
- Chapter - Bitmap base class
- Section - Scaling rule for bitmaps
- Section - Centering algorithm for bitmaps
- Section - Monochrome bitmap
- Section - Polychrome bitmap
- Chapter - Rendered strings
- Section - Rendered string base class
- Section - Private naming of rendered strings
- Section - Calculate the length of a rendered string
- Section - Bitmap-rendered string class
- Section - Prefer the null typeface (for use without Glimmr Bitmap Font by Erik Temple)
- Section - Centering algorithm for bitmap-rendered strings
- Section - Scaling rule for bitmap-rendered strings
- Section - Bitmap-rendered string drawing rule
- Chapter - Image-rendered string class
- Section - Centering algorithm for image-rendered strings
- Section - Prefer the null typeface (for use without Glimmr Image Font by Erik Temple)
- Section - Image-rendered string scaling rule
- Section - Image-rendered string drawing rule
- Chapter - Image-map base class
- Part - Converting between image-map, screen, and canvas coordinates
- Chapter - Converting image-map to canvas coordinates
- Chapter - Converting image-map to screen coordinates
- Chapter - Converting canvas to image-map coordinates
- Chapter - Converting screen to image-map coordinates
- Part - Adding figures to an image-map array using internal coordinates
- Part - Graphic hyperlinking using tiled linked command arrays
- Part - Constructing graphic hyperlink sets for image maps
- Chapter - Constructing a hyperlink set for a direct image-map
- Chapter - Constructing a hyperlink set for a tileset image-map
- Part - Debugging commands for image-maps