colorToString

external fun colorToString(color: Color, canRound: Boolean = definedExternally): String

Convert a parsed color back to a CSS string.

RGB colors are written as hex when possible, otherwise as rgb() or rgba().

Parameters

canRound

round non-integer channel values when converting RGB to hex.