Function: keepOlderPalette()
keepOlderPalette(
app,colours):void
Defined in: src/lib/settings/index.ts:157
Keep colours that older versions saved in PaintCanvas's palette (which can no longer be changed) in a palette of the
user's own, named OLDER_PALETTE_NAME: unless they're PaintCanvas's colours, or one of the user's palettes already has
them.
Parameters
app
colours
readonly string[]
Returns
void
Example
keepOlderPalette(canvas, ["#123456"]); // the user now has a "My colours" palette with #123456