Skip to main content

Module render

Module render 

Source
Expand description

Building the brand images: what each asset is, and painting it.

Structs§

Asset
One file, and everything needed to make it.
Built
A built file: where it goes, and what goes in it.

Enums§

Crop
What an asset is cropped to before it is painted.
Format
How an asset is encoded.

Constants§

ASSETS
Every brand image the site ships.
CROP_MARGIN
Sites of margin left around the wordmark in the cropped logo.

Functions§

build_all
Builds every asset in ASSETS.
build_one
Builds one asset, annealing whatever marks it needs that lattices does not already hold.
crystallise 🔒
mark’s finished lattice, annealing it if this is the first ask.

Type Aliases§

Lattices
Annealed lattices, kept by mark name so a mark that feeds several assets is annealed once. That is most of the runtime: the wordmark’s lattice alone is 35,200 sites through 1,200 sweeps.