← back to roto on ba3a.dev

add

fun add(project: Project, colour: Int): Palette

Writes project's palette file with the opaque colour appended, and returns the new palette. When unavailableReason gives a reason, nothing is written and an IllegalArgumentException carries it.