ColorFormat

@Serializable(with = ColorFormatSerializer::class)
sealed interface ColorFormat

(undocumented in the protocol definition)

Official doc

Inheritors

Types

Link copied to clipboard
@Serializable(with = ColorFormatSerializer::class)
data object hex : ColorFormat
Link copied to clipboard
@Serializable(with = ColorFormatSerializer::class)
data object hsl : ColorFormat
Link copied to clipboard
@Serializable(with = ColorFormatSerializer::class)
data object hwb : ColorFormat
Link copied to clipboard
@Serializable(with = ColorFormatSerializer::class)
data class NotDefinedInProtocol(val value: String) : ColorFormat

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard
@Serializable(with = ColorFormatSerializer::class)
data object rgb : ColorFormat