A colour that follows the revs
Ramp Color turns a number from 0 to 1 into a colour: green, yellow, then red at the limiter.
- 6 min
- follows lesson 3
- at the end: a bar that goes from green to red
The bar from lesson 3 fills between 5000 and 8000 rpm. It will also change colour: green at the start of the range, red at the end. Ramp Color reads the same output as the bar.
Add a Ramp Color
Tab, Ramp Color. Wire the Remap’s output to its t: one output can feed several inputs, the bar keeps its own.
Pick three colours
The Ramp starts with two stops, black at 0 and white at 1. The Stop button adds a third one, white, halfway. Click each colour swatch and type its code: green, yellow, red.
Colour the bar
Wire the Ramp’s output to the bar’s fillColor. Green at 5000 rpm, yellow at 6500, red at 8000.
Try it
Section titled “Try it”Move the revs, then change the mode: linear mixes red, green and blue one by one, perceptual mixes the way the eye sees and keeps colours vivid, block mixes nothing and gives three sharp zones.
Input
rpm
remap
out
Ramp
out
Bar
Why it works
Section titled “Why it works”t is a position along the Ramp: 0 at the start, 1 at the end. The Remap gives exactly 0 at 5000 rpm and 1 at 8000. Between two stops, the mode says how to go from one to the next; smooth eases into each stop, cubic draws a curve through all of them.
If you’re stuck
Section titled “If you’re stuck”The bar stays red. t expects 0 to 1. Wired straight to the revs, it’s always beyond 1, so on the last stop. The Remap has to sit between the two.
The wire won’t drop on fillColor. fillColor expects a colour: it needs the Ramp’s output, not the Remap’s.
A stop is in the wrong place. Its position, from 0 to 1, is set in the field above its colour.