(led_count: int)
return [f(led / led_count) % 1 for led in range(0, led_count)]
Stretches red and blue, compressing green, but removes pink.
    Adds a short red section, because red is chronically underrepresented.
    Doesn't take an offset, because the ends do not match up,
    leading to jumps in hue. Only used for the spectrum.
Stretches red and blue, compressing green, but removes pink.
    Adds a short red section, because red is chronically underrepresented.
    Doesn't take an offset, because the ends do not match up,
    leading to jumps in hue. Only used for the spectrum.
Stretches red and blue compressing green but removes pink . Adds a short red section because red is chronically underrepresented . Doesn t take an offset because the ends do not match up leading to jumps in hue . Only used for the spectrum .
def stretched_hues_spectrum(led_count: int):
    """Stretches red and blue, compressing green, but removes pink.
    Adds a short red section, because red is chronically underrepresented.
    Doesn't take an offset, because the ends do not match up,
    leading to jumps in hue. Only used for the spectrum."""
    #  ^ out hue
    # 1-
    #  |
    # ⅔-       xx
    #  |      x
    #  |     x
    #  |     x
    #  |    x
    #  |xxxx
    #  -|--|--|--|> in hue
    #   R  G  B  R
    M = 2 / 3

    def f(x):
        def L(x):
            return M / (1 + math.e ** (-12 * (x - 9 / 16)))

        if x < 1 / 8:
            return 0
        y0 = L(1 / 8)
        scale = M / (M - 2 * y0)
        return scale * L(x) - y0

    return [f(led / led_count) % 1 for led in range(0, led_count)]
def stretched_hues_spectrum ( led_count : int ) : #  ^ out hue # 1- #  | # ⅔-       xx #  |      x #  |     x #  |     x #  |    x #  |xxxx #  -|--|--|--|> in hue #   R  G  B  R M = 2 / 3 def f ( x ) : def L ( x ) : return M / ( 1 + math . e ** ( - 12 * ( x - 9 / 16 ) ) ) if x < 1 / 8 : return 0 y0 = L ( 1 / 8 ) scale = M / ( M - 2 * y0 ) return scale * L ( x ) - y0 return [ f ( led / led_count ) % 1 for led in range ( 0 , led_count ) ]