darkened

open override fun darkened(byPercent: Float): Color(source)

Darken this color by some target percent value.

Parameters

byPercent

A value between 0 (no change) and 1 (will result in black). Otherwise, darken the current color rgb values by some percent amount (meaning the final result depends upon the initial values).