rememberHueState

fun rememberHueState(initial: () -> Hue = { Hue.random() }): HueState(source)

Remembers a HueState for the session. The hue survives recomposition and configuration changes; a new one is generated on every cold launch / page load.

Parameters

initial

Produces the first hue; called only when no saved state exists.