blend

fun blend(existing: Int, overlay: Int, amountOfOverlay: Int): Int

Blend two colors together and return a new color.

Adapted from the FastLED library.

Parameters

existing

The starting color

overlay

The color to blend toward

amountOfOverlay

The proportion (0-255) of overlay to blend into existing