Function: colorGradient()
colorGradient(
colors,count):string[]
Defined in: src/core/VMobjectColorGradient.ts:22
Produce count colors evenly interpolated across the reference colors.
Positions are linspace(0, K-1, count) over the K reference colors; each
output blends the two bracketing references. Matches Manim CE semantics,
including the fix for the final element.
Parameters
colors
string[]
Reference colors (any THREE-parsable string)
count
number
Number of output colors
Returns
string[]
Array of #rrggbb strings (length count)