← back to roto on ba3a.dev

check

fun check(colours: ProjectPalette, base: Profile?)

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.