Files
akbasic/docs/images
Tachikoma 3342f2b569
Some checks failed
akbasic CI Build / cmake_build (push) Failing after 3m22s
akbasic CI Build / sanitizers (push) Failing after 4m43s
akbasic CI Build / coverage (push) Failing after 3m43s
akbasic CI Build / akgl_build (push) Failing after 4m48s
akbasic CI Build / mutation_test (push) Failing after 3m31s
Make GRAPHIC select the text plane
Co-authored-by: Andrew Kesterson <andrew@aklabs.net>
2026-08-03 08:08:34 -04:00
..

Generated figures — do not edit

Every PNG in this directory is output, not an asset. Each one is produced by running the BASIC listing shown immediately above it in the chapter, through tools/screenshot.c, and it is checked in only because a reader on the forge has no build tree to generate it from.

To change a picture, change the listing and regenerate:

cmake --build build-akgl --target docs_screenshots

Editing a PNG here by hand puts the picture out of step with the code it illustrates, which is the exact failure this arrangement exists to prevent — and the docs_screenshots test will fail on it, because it re-renders every figure and compares byte for byte.

The tag that ties a figure to its listing is screenshot=NAME in the fence info string, and MAINTENANCE.md documents it along with size=WxH for a figure that needs a surface other than 320 by 200, and text=1 for one whose subject is the text grid rather than a drawing. A tagged block with no image here fails docs_examples in both build configurations, so a figure cannot be added to a chapter and then forgotten.