
Painted choropleth map
@opus-motion-library/painted-choropleth
A painted island map: the coastline is brushed in, then regions fill with quantised watercolour bands (wobbly wash edges, three-pass look) driven by station data; the field can morph through time (e.g. 50 Ma to today) with a radial fill reveal, a huge serif year label and a band legend.
Instalación
node cli/mgl.mjs add painted-choropleth --to <your-project>/srcCuándo usarlo
- Ideal para
- Climate / data stories in a warm editorial look; election or survey maps for softer brands; "how X spread" maps. Pass your own `stations` and bands.
Especificaciones
- Duración
- 270f · 9s
- Tipo de duración
- Fija
- FPS
- 30
- Estilo
- 3d, nature, hud, editorial
- Licencia
- MIT
Props (16)
titlestring= "Annual rainfall"title text
subtitlestring= "a painted field map"italic line under the title
unitstring= "mm"unit appended to legend values
bandsarray= [150,300,650,1150,2000,4000]ascending thresholds; band k starts at bands[k]
colorsarray= ["#CF7C4F","#CDA35F","#B3B07A","#7F9A6C","#46705A","#2F5A45"]band colours (same length as bands)
stationsarray= [][{x (0-1000), y (0-700), value}] data points; empty = built-in demo field
timeKeysarray= [[90,0.25],[225,1]][[frame, multiplier]] the field is scaled by this multiplier over time
yearFromnumber= 50label number at the first time key
yearTonumber= 0label number at the last time key
yearUnitstring= "Ma"label unit (e.g. Ma, AD, years)
finalLabelstring= "Today"label shown once the morph ends ("" = keep number)
revealstring= "radial"'radial' fill reveal or 'coast'
passesnumber= 2wash passes 1-3 (more = softer, slower)
backgroundstring= "#F3EDE0"paper colour
inkstring= "#3A3226"ink colour
seednumber= 11island + wash seed