api icon indicating copy to clipboard operation
api copied to clipboard

How to properly use Pallete `fromFile`?

Open rikashore opened this issue 3 years ago • 1 comments

fromFile states that it takes a filename, although I am not sure on what its supposed to take, is it a string with the pallete's name or is it a string of the path to the pallete?

rikashore avatar Jun 07 '21 16:06 rikashore

fromFile is a full path/filename (e.g. c:/Users/David/Downloads/mypalette.gpl).

If you want to load a palette that is displayed in the palette presets popup inside Aseprite, you can use the fromResource

https://github.com/aseprite/api/blob/main/api/palette.md#palette-1

dacap avatar Jun 09 '21 11:06 dacap