Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly use Pallete fromFile? #42

Open
rikashore opened this issue Jun 7, 2021 · 1 comment
Open

How to properly use Pallete fromFile? #42

rikashore opened this issue Jun 7, 2021 · 1 comment
Labels

Comments

@rikashore
Copy link

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?

@dacap
Copy link
Member

dacap commented Jun 9, 2021

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 dacap added the question label Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants