openrndr / org.openrndr.draw / ColorFormat

ColorFormat

enum class ColorFormat (source)

Color format enumeration

Enum Values

R

Format with a single component (red)

RG

Format with two components (red, green)

RGB

Format with three components (red, green, blue)

BGR

Format with three components in reverse order (blue, green, red)

RGBa

Format with four components (red, green, blue, alpha)

BGRa

Format with four components in reverse order (blue, green, red, alpha)

sRGB

Format with three components (red, green, blue) in sRGB space

sRGBa

Format with four components (red, green, blue, alpha) in sRGB space

Properties

componentCount

The number of (color) components in the format

val componentCount: Int