Build an n-anchor rainbow RGBA array sweeping the hue wheel. The output is suitable to pass directly into stroke.vertexColors, tweenVertexColors({ from: rainbowVertexColors(n) }), or any other API that wants per-anchor color floats.
stroke.vertexColors
tweenVertexColors({ from: rainbowVertexColors(n) })
Build an n-anchor rainbow RGBA array sweeping the hue wheel. The output is suitable to pass directly into
stroke.vertexColors,tweenVertexColors({ from: rainbowVertexColors(n) }), or any other API that wants per-anchor color floats.