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

How to use it

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Join on Patreon → How unlocking works →

Where it appears

Parameters

Custom

ControlType / defaultWhat 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.
Options: Vertical, Horizontal, Radial, Circular
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.
Options: Hold, Zero, Repeat, Mirror
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.
Options: Step, Linear, Ease In Ease Out, Hermite
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.
Options: Nearest Pixel, Interpolate Pixels, Mipmap Pixels
Viewer SmoothnessFiltertype menuNearest Pixel Filtering used when the output is displayed at another resolution.
Options: Nearest Pixel, Interpolate Pixels, Mipmap Pixels
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).
Options: Use Input, 8-bit fixed (RGBA), 16-bit float (RGBA), 32-bit float (RGBA), 10-bit RGB, 2-bit Alpha fixed (RGBA), 16-bit fixed (RGBA), 11-bit float (RGB), Positive Values Only, 8-bit fixed (Mono) and 15 more

Keys

ControlType / defaultWhat 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.