Looks and palettes

A look is several effects at once: look("dream"). It gives its parts back by name (look("vhs").glitch.strength = 1), and has amount, off(), on() and remove() for the lot. lookNames() lists them to a program (look_names()).

There are 16: dream, arcade, vhs, neon, comic, underwater, oldfilm, disco, gameboy, c64, noir, comicbook, storm, winter, cinema, terminal.

dream

Soft, glowing and rich.

look("dream") is glow({ strength: 1, threshold: 0.35, radius: 40 }), then saturate({ strength: 1.3 }), then vignette({ strength: 0.5 }).

arcade

The curved glass of an old arcade machine.

look("arcade") is glow({ strength: 0.7, threshold: 0.4, radius: 20 }), then crt({ curve: 0.2, lines: 0.5 }).

vhs

A worn videotape.

look("vhs") is saturate({ strength: 1.35 }), then rgbSplit({ size: 3 }), then glitch({ strength: 0.35 }), then scanlines({ strength: 0.3, size: 4 }), then grain({ strength: 0.2, size: 2 }), then vignette({ strength: 0.45 }).

neon

Glowing outlines in the dark.

look("neon") is edges({ strength: 3, fill: 0.15 }), then glow({ strength: 1.4, threshold: 0.2, radius: 28 }).

comic

A few flat colours, printed in dots.

look("comic") is posterize({ levels: 4 }), then dots({ size: 7 }).

underwater

Blue, wobbling and dim at the edges.

look("underwater") is wobble({ size: 10, scale: 160 }), then tint({ colour: "#7fd4ff" }), then glow({ strength: 0.5, threshold: 0.5 }), then vignette({ strength: 0.6, colour: "#001830" }).

oldfilm

Brown, grainy and dark at the corners.

look("oldfilm") is duotone({ dark: "#1a1208", light: "#f2e2c0" }), then grain({ strength: 0.3, size: 2 }), then vignette({ strength: 0.75 }).

disco

A kaleidoscope whose colours keep turning.

look("disco") is kaleidoscope({ segments: 10 }), then hue({ shift: 0, speed: 60 }), then glow({ strength: 0.8 }).

gameboy

Four shades of green.

look("gameboy") is dither({ palette: "gameboy", size: 3 }).

c64

The colours of a 1980s home computer.

look("c64") is dither({ palette: "c64", size: 3 }), then scanlines({ strength: 0.2, size: 3 }).

noir

Black and white, high contrast, grainy.

look("noir") is saturate({ strength: 0 }), then contrast({ strength: 1.6 }), then grain({ strength: 0.25, size: 2 }), then vignette({ strength: 0.8 }).

comicbook

Black outlines over printed dots.

look("comicbook") is cartoon({ levels: 4 }), then dots({ size: 5, paper: "#101018" }).

storm

Rain, lightning and fog.

look("storm") is rain({ strength: 0.7 }), then lightning(), then fog({ strength: 0.35, colour: "#8a94a8" }), then vignette({ strength: 0.6 }).

winter

Cold light and falling snow.

look("winter") is tint({ colour: "#cfe4ff" }), then snow(), then softFocus({ strength: 0.4 }), then vignette({ strength: 0.4, colour: "#0a1830" }).

cinema

A film camera: flares, a narrow focus, grain.

look("cinema") is streaks({ strength: 0.5 }), then tiltShift({ strength: 5 }), then grain({ strength: 0.1 }), then vignette({ strength: 0.5 }).

terminal

Green marks on a dark screen.

look("terminal") is letters({ size: 9, own: false, colour: "#3dff7a" }), then glow({ strength: 0.6, threshold: 0.2, radius: 14 }), then scanlines({ strength: 0.25 }).

Palettes

An effect that takes a palette (colourCycle, plasma, metaballs, flow, gradientMap, thermal, dither, warp, voronoi, interference, aurora, fire, copperBars, twister, spectrumBars, spectrumRing) is given one of these names, or a list of colours of your own: plasma(["navy", "magenta", "gold"]). paletteNames() lists them to a program (palette_names()).

The palettes are "rainbow", "fire", "ocean", "sunset", "neon", "candy", "forest", "ice", "lava", "mono", "thermal", "aurora", "gameboy", "c64", "amiga", "pico". The table has the colours of each.

PaletteIts colours
"rainbow"#ff2a2a #ffd92a #3cff5a #2ad4ff #5a3cff #ff2ad4
"fire"#000000 #5a0a00 #d43a00 #ff9a1a #ffe98a #5a0a00
"ocean"#02102a #0a3a7a #1a8ad4 #6ae0e0 #e8fff8 #0a3a7a
"sunset"#1a0a3a #6a1a7a #e0407a #ff8a3a #ffd86a #6a1a7a
"neon"#0a001a #ff1ad9 #1affea #f6ff1a #7a1aff #1affea
"candy"#ff8ad4 #ffd0e8 #8ad4ff #b8ffd0 #fff0a0 #d0a0ff
"forest"#04140a #0e4a22 #3a8a2a #a8d44a #f0f0a0 #0e4a22
"ice"#020818 #103a6a #4a9ae0 #b8e8ff #ffffff #4a9ae0
"lava"#1a0000 #8a0a00 #ff3a00 #ff9a00 #ffe27a #ff5a00
"mono"#000000 #ffffff
"thermal"#000000 #20008c #cc0077 #ff3000 #ffd000 #ffffff
"aurora"#00ff9a #00b0ff #8a2be2 #00ff9a
"gameboy"#0f380f #306230 #8bac0f #9bbc0f
"c64"#000000 #352879 #6c5eb5 #9a6759 #b8c76f #ffffff
"amiga"#000022 #0055aa #ff8800 #ffffff
"pico"#1d2b53 #7e2553 #ff004d #ffa300 #29adff #fff1e8