contrast

fun contrast(factor: Float): Color

Applies contrast to this color between a factor of 0.0 and 1.0.

Return

A new Color instance with the contrast applied

Parameters

factor

The factor of the contrast (0.0-1.0)