ShapeColor

value class ShapeColor(val argb: ULong)

A 32-bit color packed as 0xAARRGGBB — the renderer-neutral paint carrier of the scene graph's styles.

The channels decode from the low 32 bits of argb. Equality is the value class's raw bit equality of argb: two colors are equal only when their packed bits match exactly — fully transparent colors with different color bits are not collapsed, and NONE is the single canonical spelling of "no paint".

Constructors

Link copied to clipboard
constructor(argb: ULong)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val a: Int

The alpha channel, 0 transparent to 255 opaque.

Link copied to clipboard
val argb: ULong

The packed bits — alpha, red, green, blue, one byte each, alpha highest.

Link copied to clipboard
val b: Int

The blue channel, 0..255.

Link copied to clipboard
val g: Int

The green channel, 0..255.

Link copied to clipboard
val r: Int

The red channel, 0..255.