Docs Visual
RealRamp
A ramp with a true phase and period and its colour keys as parameters: vertical, horizontal, radial or circular, holding, zeroing, repeating or mirroring past its ends, so a driven phase never drifts or snaps the way a keyed Ramp TOP can. An alternative for the Ramp TOP.
◧ Visual ◆ Patreon · Base OP Create menu entry
Why use it
The Ramp TOP keeps its colour keys in a table DAT. That suits a gradient you design once and leave alone. It gets awkward when you want to drive one: a key colour that follows a CHOP, a second key that tracks another operator's parameter, a palette you animate from a control panel.
RealRamp keeps its keys as parameters on the operator, so each key's position and colour takes an expression, an export or a CHOP like any other parameter. The gradient is computed in a shader from a phase and a period, so a driven phase cycles the ramp smoothly forever, and the output is 32-bit float by default. Its types, extend modes and interpolation were measured against the stock Ramp TOP and match it closely.
Features
- Colour keys as parametersEach key's position and colour is a parameter on the operator, so it can take an expression, an export or a CHOP like any other.
- Phase and period rampComputes the gradient in a shader from a phase and a period, so driving Phase from a CHOP cycles the ramp smoothly forever.
- Radial, circular, vertical or horizontal rampsDraws the ramp vertical, horizontal, radial or circular, with Radial starting at 3 o'clock like the Ramp TOP.
- Repeat or mirror past the endsHolds the end colours, goes to zero, repeats or mirrors past the ends of the ramp.
- Interpolate between keys like the Ramp TOPStep, Linear, Ease In Ease Out and Hermite blending between keys, matched against the stock Ramp TOP.
- Banding-free outputOutputs 32-bit float by default, so a slow gradient shows no steps.
- Resolution from an inputWith an input connected the ramp takes its resolution, and the image itself is never sampled; without one, Resolution sets the size.
- Replace a Ramp TOPOffered in place of a Ramp TOP created with the alternatives shortcut held, wired into the same spot.
How to use it
- Create a Ramp TOP with the alternatives shortcut held. RealRamp is offered in its place and lands in that spot, wired the same way. A fresh one is horizontal, black to white, repeating, with linear blending.
- Set the colours on the Keys page. Add or remove keys with + and -, and give each a Position along the ramp and a Color with alpha. Keys can be in any order; they are sorted by position.
- Pick the geometry with Type. Radial runs round the centre starting at 3 o'clock, like the Ramp TOP; Circular grows outward from the centre.
- Make it move by driving Phase with an expression or a CHOP, for example
absTime.seconds*0.2, to scroll the ramp. Period sets the length of one cycle; smaller values repeat the ramp more often. - Choose what happens past the ends with Extend. Repeat starts over, which keeps a scrolling ramp cycling; Mirror runs back; Hold keeps the end colours; Zero goes transparent black.
- Change the blend between keys with Interpolate: Step holds each key, Linear blends straight, Ease In Ease Out slows at each key and Hermite curves through them, with Curve Tension to bend that curve.
- Size it with Resolution when nothing is wired in. With an input connected, the ramp takes the input's resolution; the image itself is never sampled. Pixel Format is 32-bit float out of the box, which keeps the ramp free of banding; 16-bit float is usually enough, and 8-bit shows visible steps.
Like the Ramp TOP, the output is premultiplied: each colour is multiplied by its alpha. RealRamp has no Anti-Alias parameter, so hard edges on radial and circular ramps (Step keys, the seams of Repeat and Zero) stay hard where the Ramp TOP would smooth them.
Inputs and output
- in1 (TOP): optional; sets the output resolution when connected.
- out1 (TOP): the ramp.
Get it
This tool unlocks with Patreon. It installs through the same picker as everything else and unlocks with the Patreon Base tier or higher, connected from inside TouchDesigner. Everything else in the toolkit stays free and MIT, and the membership is what keeps that work moving.
Where it appears
- OP Create menu entryposition 0
Parameters
Custom
| Control | Type / default | What it does |
|---|---|---|
ResolutionResolution |
number256 | Output width and height in pixels when nothing is wired into the input. With an input connected, the ramp takes the input resolution. |
TypeType |
menuHorizontal | Direction of the ramp. Radial runs round the centre starting at 3 o'clock, like the Ramp TOP; Circular grows outward from the centre. |
PhasePhase |
number0 | Offsets the ramp along its direction, in periods. Constant 0 by default; drive it with an expression or CHOP (e.g. absTime.seconds*0.2) to scroll the ramp. |
PeriodPeriod |
number1 | Length of one ramp cycle in UV units; smaller values repeat the ramp more often. 0 outputs black. |
ExtendExtend |
menuRepeat | What the ramp does past its ends: Hold keeps the end colours, Zero goes transparent black, Repeat starts over, Mirror runs back. |
InterpolateInterpolate |
menuLinear | How colours blend between keys, as on the Ramp TOP: Step holds each key, Linear blends straight, Ease In Ease Out slows at each key, Hermite curves through them. |
Curve TensionTension |
number0 | Hermite only: bends the curve between keys. 0 is a smooth curve through every key. |
Input SmoothnessInputfiltertype |
menuNearest Pixel | Filtering used when sampling a wired input. The ramp itself never samples the input (only its resolution and format are used), so this is kept for SetSmoothness and has no visible effect. |
Viewer SmoothnessFiltertype |
menuNearest Pixel | Filtering used when the output is displayed at another resolution. |
Pixel FormatFormat |
menu32-bit float (RGBA) | Pixel format of the output. Defaults to 32-bit float, which keeps the ramp free of banding; 16-bit float is usually enough, 8-bit shows visible steps. Use Input follows the wired input (8-bit when nothing is wired). |
Keys
| Control | Type / default | What it does |
|---|---|---|
KeysKey |
sequence0 | Colour keys along the ramp. Add or remove keys with + and -. Keys may be in any order; they are sorted by position. |
PositionKey0pos |
number0 | Where this key sits on the ramp, 0 at the start and 1 at the end. |
ColorKey0color |
colour0 | Colour and alpha of this key. |
PositionKey1pos |
number0 | Where this key sits on the ramp, 0 at the start and 1 at the end. |
ColorKey1color |
colour0 | Colour and alpha of this key. |