import math


def create_waveform256(lenght):
    """
    >>> create_waveform256(3)
    (10, 255, 10)

    >>> create_waveform256(12)
    (0, 1, 15, 63, 143, 221, 255, 221, 143, 63, 15, 1)
    """
    # wave_array is an array with integers to max 255/2, colors
    if lenght == 3:
        return (10, 255, 10)

    waveform256 = [0] * lenght
    for i in range(lenght):
        phase = i / lenght * 2 * math.pi
        value256 = int(255.0 * (-math.cos(phase) * 0.5 + 0.5) ** 2)
        assert 0 <= value256 < 256
        waveform256[i] = value256
    return tuple(waveform256)