darken

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

Darkens this color by the provided magnitude.

const darkBlue = Color.BLUE.darken(0.5, new Color());

Return

The modified result parameter.

Parameters

magnitude

A positive number indicating the amount to darken.

result

The object onto which to store the result.

See also