canvas-tour

command
v1.17.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL