← back to roto on ba3a.dev

BuiltInPresets

The presets shipped inside roto-core as classpath resources under presets/<id>/: preset.json, palette.hex and ramps.json each, with presets/index.txt listing the ids, one per line. They are generic starting points that name no game, engine or consumer layout.

Functions

Link copied to clipboard

Every built-in preset, in the order of ids.

Link copied to clipboard
fun ids(): List<String>

The ids of the built-in presets, in the order index.txt lists them.

Link copied to clipboard

The built-in preset id. Throws PresetException when it is not listed or a file is invalid.