
OverlayNew
Thermometer with named marks
A liquid-in-glass thermometer: a glass tube and bulb, a liquid that turns to the warning colour when hot, ticks, named marks and an optional second scale.
- Version
- 1.0.0
- Added
- 23 October 2026
- Films
- Not used in a film yet
Parameters
| Name | Type | Default | Range | What it does |
|---|---|---|---|---|
| value (Can change over time) | number | 21 | -1000000000000 to 1000000000000 | the temperature shown, in the scale’s unit; give a follower of the counter, (v) => v, to move with the filmCan change over time |
| min | number | -30 | -1000000000000 to 1000000000000 | the bottom of the scale |
| max | number | 50 | -1000000000000 to 1000000000000 | the top of the scale |
| hot | number | 35 | -1000000000000 to 1000000000000 | from this value the liquid turns smoothly toward the warning colour; at or past max for never |
| unit | text | °C | – to 12 | the scale’s unit: °C, °F or K (the second scale is converted from it) |
| second | choice | none | none, celsius, fahrenheit, kelvin | a second scale on the other side in this unit, converted exactly; none when it repeats the unit |
| marks | text | 0 Freezing; 20 Room; 37 Body | – to 200 | named marks: a value then a name, separated by semicolons (up to 8) |
| label | text | AIR | – to 40 | a word over the thermometer; empty for none |
| decimals | integer | 0 | 0 to 4 | decimal places of the value |
| format | choice | grouped | grouped, plain, compact, scientific | how numbers are written: 12,500 / 12500 / 12.5k / 1.25×10⁴ |
| at | vec2 | 0.9, 0.84 | 0 to 1 | the scale’s low end: across and down the frame; a thermometer near an edge slides in |
| length | number | 0.5 | 0.15 to 0.8 | the scale’s length, a share of the frame’s height |
| size | number | 0.028 | 0.015 to 0.06 | the height of its words and numbers, a share of the frame’s height |
| thickness | number | 0.026 | 0.012 to 0.05 | the glass tube’s width, a share of the frame’s height |
| ink | color | #f3f0e8 | – | ticks, words and numbers |
| accent | color | #4fb8e8 | – | the live value and what has been reached |
| warn | color | #ff6b4a | – | danger: past a limit |
| font | choice | sans | sans, serif, mono | the face of its words and numbers |
| backing | number | 0.35 | 0 to 1 | how dark the soft panel behind it is; 0 for none |
| reveal | number | 0.8 | 0 to 5 s | how long it takes to draw in; 0 shows it at once |
Use it in a film
film.js
elements: { 'thermometer': { value: 21, min: -30 } }Use it from your agent
Ask your agent to put it in a film. It finds the element by name.