Heatmap
Thermal-camera heat flowing through any 2D, SVG, or 3D shape. Powered by Paper Shaders.
Props
origin
Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
- Type
- string
- Default
- center
center
Center position of the heatmap shape
- Type
- {x: number, y: number}
- Default
- {"x":0.5,"y":0.5}
scale
Scale of the heatmap shape (1 = default size)
- Type
- number
- Default
- 1
rotation
Rotation of the heatmap shape in degrees
- Type
- number
- Default
- 0
colorA
Cold color (used when no gradient stops are set)
- Type
- string
- Default
- #02010f
colorB
Hot color (used when no gradient stops are set)
- Type
- string
- Default
- #f9e25f
stops
Multi-stop gradient colors (overrides Color A / Color B when set)
- Type
- object
- Default
- [{"color":"#02010f","position":0},{"color":"#2a0a8a","position":0.2},{"color":"#a41c9b","position":0.45},{"color":"#e8632b","position":0.7},{"color":"#f9e25f","position":0.9},{"color":"#ffffff","position":1}]
colorSpace
Color space for the heat ramp interpolation
- Type
- "linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
- Default
- oklab
innerGlow
Heat filling the inside of the shape
- Type
- number
- Default
- 0.4
outerGlow
Heat radiating beyond the silhouette
- Type
- number
- Default
- 0.2
contour
Heat concentrated along the shape boundary
- Type
- number
- Default
- 0.5
angle
Direction the heat waves travel, in degrees
- Type
- number
- Default
- 90
speed
Speed of the flowing heat. 0 pauses.
- Type
- number
- Default
- 1
shape
Shape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
- Type
- ShapeConfig
- Default
- sphere3D
shapeSdfUrl
URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.
- Type
- string
- Default
- ""