Variant Of
@Serializable
A profile with no clips of its own: it publishes the finished art of the base profile with some ramps swapped for others. Stored as variant in the variant's profile.json.
Construction checks what needs nothing else; check checks the rest against the project and the base profile.
Constructors
Link copied to clipboard
constructor(base: String, swaps: List<RampSwapPair>, outline: @Serializable(with = HexColorSerializer::class ) Int? = null)
Properties
Functions
Link copied to clipboard
Checks this variant against the project's colours and the base profile as loaded, null when there is none: the base must exist and not be a variant itself, every swapped ramp must be in ramps.json and the outline colour in the palette. Throws IllegalArgumentException naming the field.