Susegad UI Accessibility GitHub

How this site looks

The view settings need JavaScript. Every page reads well without them.

Mood

The same pages, in three moods.

Theme

Foundations

The tiatr curtain

The tiatr's red velvet curtain, drawn once: a tiled velvet strip with a slow sideways drift, a soft shadow under the pelmet, a gold fringe along a hem whose shape the caller supplies. The Kantar scene and the Kantar interlude both draw it from here, so there is one curtain in the library, not two.

npx @susegad/cli add kantar-curtain

Stands on: Engine

The prompt

the prompt

Words to code.

The wordsWhat it isWhere it lives
"a heavy red velvet curtain with vertical folds"the tiled five-stop velvet strip, drifting slowly sidewayscurtain.js's foldStrip and the pattern in drawCurtain
"a hem that ripples when it lands"the caller's own function: hem(x, bottom) returns the hem's ythe scene's rippleAmp, the interlude's hemWave
"gold fringe along the hem"a thick gold ink stroke plus short tasselsthe end of drawCurtain
"the curtain is down by this much"curtainEdge(box, drop, hem), pure, tested in Nodecurtain.test.js

Use it from a canvas: drawCurtain(g, { x0, y0, x1, y1 }, { drop, hem, t, scale }). scale is canvas units per design unit (1 for the scene; the interlude passes its width over the scene's opening). within(g, path) runs while clipped to the curtain, which is where the interlude puts its spotlight. It draws no text, and the pelmet, footlights and any singer are the caller's.

This piece has no written docs yet. Its demo and its source are the reference for now.