brighten

fun brighten(magnitude: Double, result: Color): Color(source)

Brightens this color by the provided magnitude.

const brightBlue = Color.BLUE.brighten(0.5, new Color());

Return

The modified result parameter.

Parameters

magnitude

A positive number indicating the amount to brighten.

result

The object onto which to store the result.

See also