withHSL

inline fun <T> withHSL(func: (h: Float, s: Float, l: Float) -> T): T

Utility function for switching the HSL color space and performing an operation on the channels.

Return

The result of the function.

Parameters

func

The function to apply to the HSL channels.