withAlpha

open infix override fun withAlpha(newAlpha: Float): HSL

Creates a new color with the given alpha value.

Return

A new color with the given alpha value.

Parameters

newAlpha

The new alpha value 0 to 1.