← back to roto on ba3a.dev

Ramp

@Serializable
data class Ramp(val name: String, val colors: List<@Serializable(with = HexColorSerializer::class) Int>)

A named run of palette colors from darkest to lightest, as the artist shades one material: skin, cloth, metal. Shading picks a step by lightness, so the colours must grow strictly lighter in OKLab; the first is the darkest, which also outlines the ramp's regions.

Constructors

Link copied to clipboard
constructor(name: String, colors: List<@Serializable(with = HexColorSerializer::class) Int>)

Properties

Link copied to clipboard
val colors: List<@Serializable(with = HexColorSerializer::class) Int>

the colours as Argb, darkest first

Link copied to clipboard

The darkest colour, the first.

Link copied to clipboard

the ramp's name, which zones refer to