Gradient Generator

Creates an interpolated color gradient based on a list of input colors and a number of steps.

Utilities Nickname: GradientGen

Overview

Creates an interpolated color gradient based on a list of input colors and a number of steps.

Inputs (2)

  • Colors (Colour): List of input colors to interpolate
  • Steps (Integer): Number of output colors to generate

Outputs (1)

  • Generated Colors (Colour): The interpolated list of colors

Method, assumptions and simplifications

The same notes appear in the component's Info output.

Method

  1. Outputs Steps colours spread evenly from the first to the last input colour, interpolating linearly in RGB between neighbouring input colours.
  2. With no Colors, uses blue to red; Steps below 1 become 1.

Assumptions

  • Input colours are listed from low to high.

Simplifications and limits

  • Alpha is dropped (opaque output); RGB interpolation, not perceptual.