blend8

fun blend8(a: Int, b: Int, amountOfB: Int): Int

Blend a variable proportion (0-255) of one byte to another.

Adapted from the FastLED Library.

Return

A byte value between a and b, inclusive

Parameters

a

The starting byte value

b

The byte value to blend toward

amountOfB

The proportion (0-255) of b to blend