Creating an extension that adds a tool?

Is it possible to create an extension that adds a tool to Aseprite?

I want to create a “gradient fill bucket”, where I can select multiple colors, click a place on the canvas, and have it fill the outmost layer of pixels with the first color, the next layer with the next, etc. until it uses all the colors, and fill any remaining space with the last color, if that makes sense. So for example, with one click, I could have an irregular shape filled in with darkest colors on the edges, gradually going to lighter colors on the inside.

However, looking through the API docs and all the examples I can find, I didn’t actually see anything about adding new tools to Aseprite? Is it not possible?

… Or am I just being totally clueless… is it already possible to do what I’m describing in vanilla aseprite?

Ok, well after a whole lot of trial and error, I’ve almost got it. I’ll post my script here when it’s done. (won’t have time to finish it until possibly Tuesday or Wednesday though)

As promised, here is the finished extension. This is going to help me a lot with creating depth maps very quickly!

Aseprite Gradient Fill by skeets23

1 Like