References: Drawing Shapes, Text, and Animation
-
Bresenham's line algorithm - Wikipedia - Describes the integer-only incremental method for choosing which pixels best approximate a straight line. It explains what happens inside the line command students use to draw clock hands and tick marks.
-
Midpoint circle algorithm - Wikipedia - Shows how a circle is drawn on a pixel grid using integer decisions and eight-way symmetry. It clarifies how circles and arcs for a clock face are produced on a small display.
-
Multiple buffering - Wikipedia - Explains double buffering and page flipping, where a complete image is prepared off screen before being shown. It directly supports this chapter's double buffering and smooth animation techniques that avoid flicker.
-
Computer Graphics from Scratch (1st Edition, 2021) - Gabriel Gambetta - No Starch Press - Gambetta's Lines chapter introduces a small Interpolate function that computes one variable from another, then reuses it to draw any line. This clear abstraction explains line drawing without heavy algebra.
-
Computer Graphics: Principles and Practice (3rd Edition) - John F. Hughes, Andries van Dam, and coauthors - Addison-Wesley - No single author originated pixel-level shape drawing, so this is chosen as the field's most widely cited textbook, a standard reference for rasterizing lines, circles, and polygons on a pixel grid.
-
The Adafruit GFX Library: Graphics Primitives - Adafruit Learning System - Walks through drawing pixels, lines, rectangles, circles, and triangles, and contrasts outline and filled versions. It gives students a common vocabulary for the shape tools this chapter teaches.
-
micropython-font-to-py - Peter Hinch, GitHub - Documents the command-line tool that converts TrueType fonts into Python modules, plus the Writer class that draws them. It is the real tool behind this chapter's custom fonts and font loading sections.
-
Double Buffer - Game Programming Patterns, Robert Nystrom - Uses a clear analogy to explain why drawing straight into the visible framebuffer causes tearing and how swapping two buffers fixes it. Great reading for the double buffering section.
-
MicroPython: SSD1306 OLED Display Scroll Functions and Draw Shapes - Random Nerd Tutorials - Provides working code for scrolling the screen and drawing lines, rectangles, circles, and triangles on an SSD1306. It matches the shape and scroll marquee topics students practice here.
-
Using a SSD1306 OLED display - MicroPython Documentation - The official tutorial showing FrameBuffer calls such as line, rect, fill_rect, text, scroll, and show, plus a logo example. It reinforces how the chapter's drawing commands combine into a picture.