← back to roto on ba3a.dev

write

fun write(palette: Palette, path: Path)

Writes palette to path as .hex: one lower-case #rrggbb per line, UTF-8, \n endings, through AtomicFile. Any other extension is a PaletteFormatException.