Sizing

By default a window fills the content width at a clamped height. Size an individual window with :width, :height, and/or :aspect-ratio. Bare numbers are pixels; any CSS length or percentage works too.

Fixed :width and :height (here 320×200):

:width alone — the height stays the default:

:height alone — the width stays full-width:

:aspect-ratio on its own is the “fit the default” case: it keeps the default height and derives the width to match the ratio (never wider than the content). Here a square:

Pair :aspect-ratio with a single dimension to derive the other — a 16:9 window 480px wide:

The same works for literate (custom GLSL) windows — the sizing attributes are independent of the shader body.

// settings
theme:
fx: