← back to roto on ba3a.dev

RampSet

@Serializable
data class RampSet(val outline: @Serializable(with = HexColorSerializer::class) Int? = null, val ramps: List<Ramp>)

A project's ramps.json: its named ramps and, optionally, the outline colour drafts are outlined in. Without one, each region is outlined in its own ramp's darkest colour.

Constructors

Link copied to clipboard
constructor(outline: @Serializable(with = HexColorSerializer::class) Int? = null, ramps: List<Ramp>)

Properties

Link copied to clipboard
val outline: @Serializable(with = HexColorSerializer::class) Int?

the outline colour as Argb, or null to outline in each ramp's darkest

Link copied to clipboard

the named ramps, each name once

Functions

Link copied to clipboard
fun ramp(name: String): Ramp?

The ramp called name, or null when there is none.