Studio Yotsuba
Back to Node List

Color Ramp

color_ramp

Animates a color. Pick the colors to travel through (Color A → Color B, or a connected list), then move Position (0..1) to get the color at that point. Connect a motion or keyframe node to Position for fades, glows and damage flashes.

Reviewed
Guide available

Input Ports

NameTypeDescription
Colors
colors
List<Color>
The colors to travel through, in order (a Palette works too). When connected, Color A / Color B below are not used.

Output Ports

NameTypeDescription
Color
color
Color
The color at the current Position. Connect it to the color parameter you want to animate.

Parameters

NameTypeDefaultRangeDescription / Options
Position
t
Float
00–1 / step 0.01

Where you are between the colors: 0 = first color, 1 = last color. Attach an animation here (🎞️ or a motion/keyframe node) to make the color change over time.

Blend
mode
Enum
Smooth—

How the color changes from one to the next

  • SmoothSmooth
    Creates in-between colors automatically for a gradual change. For fades and glows.
  • StepStep
    No in-between colors — snaps from one color to the next. For blinking lights and palette-style color swaps.
Color A
color_a
Color
[1,1,1,1]—

The starting color (Position 0). Not used when a color list is connected.

Color B
color_b
Color
[0,0,0,1]—

The ending color (Position 1). Not used when a color list is connected.

Color Interpolation
interpolation_space
Enum
Current—

Use Current to preserve existing projects; choose OKLCH for skies, fire, magic, and other hue-rich ramps.

  • CurrentCurrent
    Keep this node's previous color blending exactly
  • OklchOklch
    Blend perceived brightness and colorfulness while allowing a chosen hue route
Hue Route
hue_path
Enum
Shortest—

Choose which colors the ramp travels through. Try the two directed routes when the midpoint has the wrong mood.

  • ShortestShortest
    Take the shorter route around the hue wheel
  • ClockwiseClockwise
    Increase hue around the wheel, wrapping through 360 degrees when needed
  • CounterClockwiseCounterClockwise
    Decrease hue around the wheel, wrapping through zero degrees when needed

Overview

Use this node when you want a color to change over time: a damage flash from white to red, a treasure chest glinting, a background slowly shifting to sunset colors. Line up the colors you want inside this node, then move Position — that's all. Colors can't be keyframed directly, so this node is the entry point for color animation.

Usage tips

  • Typical wiring: attach an animation to Position with the 🎞️ button (motion or keyframe), then connect the color output to the pin of the color parameter you want to animate. Tip: pressing 🎞️ on that color parameter creates this whole setup automatically.
  • For just two colors, the Color A / Color B parameters are enough — no colors connection needed. To pass through three or more colors, line them up with palette_create and connect to colors.
  • Timing tricks such as "hold the original color, then snap to the target near the end" belong in the keyframe curve attached to Position, not in the color list.
  • Step mode plus a repeating motion (ping-pong etc.) switches through the colors in order — good for blinking lights and signals.

Common pitfalls

  • Muddy in-between colors: smooth mode usually blends cleanly, but opposite colors (red ⇔ green, etc.) can dull out in the middle. Add the color you want to pass through as an extra stop.
  • The last color never shows in step mode: the colors split Position's 0-1 range evenly. If Position never reaches 1.0, the last color is never picked — check the range of whatever moves Position.

Related nodes

  • motion / keyframe_clip — move Position (when and how fast the color changes)
  • palette_create / palette_get — prepare the colors
  • palette_cycle — rotate a whole palette (the classic technique, when you want to move the entire palette rather than one color)
  • color_adjust_oklch — fixed color correction without animation
Back to Node List