Documentation
¶
Overview ¶
Command canvas-tour opens a 640x480 window that shows the proof scenes of milestones 2 to 4 (shapes, gradients, blend modes, effects, text), one per page, drawn by the GPU renderer, and a last page, size-grid, that depends on the size of the window: a grid of lines one pixel wide, which shows whether the buffer is as sharp as the screen (on a display with a fractional scale it must be, step 3.7). It is a development example (milestone 3): it uses the internal packages directly, before the public API exists, and it grows with the renderer. What the GPU cannot draw yet is left out of the page and listed in the log, so each step of milestone 3 makes the pages fuller.
Run it with: go run ./examples/dev/canvas-tour
Keys: Right, PageDown or Space show the next page, Left or PageUp the previous one, Escape quits. To try it without a desktop session run it under a headless server: scripts/headless-wayland.sh -- go run ./examples/dev/canvas-tour
Environment (read in debug builds only, as the examples promise):
GLUTTER_DEV_PAGE=<n or name> the first page: 1 to 9, or a scene name
such as shapes-clips (default 1)
GLUTTER_BACKEND=x11|wayland the windowing system (else the session's)
GLUTTER_RENDERER=gles|vulkan the renderer (else the default; see SPEC §9.6)
GLUTTER_SCREENSHOT=<file.png> save the window content to the file and exit
GLUTTER_SCREENSHOT_AFTER=<time> wait that long (such as 500ms) before saving