withRGB

inline fun <T> withRGB(func: (r: Float, g: Float, b: Float) -> T): T

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

Return

The result of the function.

Parameters

func

The function to apply to the RGB channels.