I have an array of lights and want a wave to run across it. Each light should only show one value.
Using the distance method below, I end up with a smooth gradient. Is there any smart way of achieving this effect with just a single value per light, and not a gradient?