Ascii.Pieces.NightCoast (Ascii v0.3.0)

Copy Markdown View Source

A lighthouse turning its beam under moonlit clouds over a dark sea.

A lighthouse on a wooded headland under moonlit clouds. The beam turns every eight seconds, the clouds drift, and the sea carries the moon's road and the lamp's reflection.

Each frame is shaded in colour cell by cell on a square grid, then drawn as a halftone: every cell is a dot whose size is its brightness, ordered- dithered so gradients read as texture, in the palette colour nearest its hue.

Ported from src/pieces/night-coast.ts in bas3line/ascii (MIT).

Summary

Functions

fbm(x, y, octaves, period)

See Ascii.Kit.Scene.fbm/4.

noise(x, y, period)

See Ascii.Kit.Scene.noise/3.