weasel API - v0.8.0
    Preparing search index...

    Function rainbowVertexColors

    • 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.

      Parameters

      • n: number
      • opts: { alpha?: number; lightness?: number; saturation?: number } = {}

      Returns number[]