[Script] Apply/modify colour channels on selected pixels

I created a dialog to apply an absolute or relative colour change on specified colour channels of selected pixels of an image. You can also include/exclude transparent colours from the change. The results of the dialog are applied as a transaction so you can undo/redo in a single operation.

I’m new to Aseprite (and Lua) and this is my first script. I mainly created this dialog as a learning excercise, exploring the capabilities of Aseprite scripting with a view of building more scripts later on.

demo

As you can see I created some custom widgets, including an RGBA button cluster and tooltip support.

tooltips

Source

Everything you need is available on Github

Download

v1.0.0

Installation

Basically just download the release zip and unpack the files into your Aseprite script folder as per the instructions.

  1. Copy the contents of the scripts folder to your Aseprite scripts folder.
  2. Copy the modules folder to your Aseprite scripts folder.
  3. In Aseprite, scan the scripts folder for new scripts (File | Scripts | Rescan Scripts Folder).

Modules

To keep the scripts simple and to provide a foundation for future scripts, I separated functionality into several modules. I plan to use/extend these modules as I make future scripts, but you can also make use of these in your own scripts too.
Everything is available under an MIT license.

In-depth documentation of each module/function/widget is provided in the wiki pages.