A downloadable Aseprite script

SnapPalette.lua is a Lua script for Aseprite that snaps the RGB values of the current sprite's palette.

What it Does:

  • SnapPalette.lua will snap the color values to either the nearest number, the number rounded up, or rounded down.
  • If a range of colors within the palette is selected, the script will only affect the currently selected colors. Otherwise, it will affect all colors in the palette.
  • You must have a sprite selected for the script to work.
Published 6 days ago
StatusReleased
CategoryTool
Authorkid marscat
TagsAseprite, extension, lua, lua-script, mod, script, tool

Download

Download
snappalette_0_2.zip 2.1 kB

Install instructions

How to install:

  • In Aseprite, go to File > Scripts > Open Scripts Folder. This should open an Explorer window at <Aseprite program folder>/scripts.
  • Copy the file SnapPalette.lua to this folder and in File > Scripts select Rescan Scripts Folder.
  • The script should now be available for use.

Instructions:

  • While editing a sprite, either select a color range in the palette or leave it as is.
  • Go to File > Scripts > SnapPalette and select SnapPalette.
  • In the dialog box, select the value we will use to snap the colors. Think of it as a grid, but instead of pixels, for colors.
  • Select whether we will round to "nearest" (the closest multiple of the value), round up (the next multiple of the value) or round down (the previous multiple of the value).
  • Press "apply" to snap the colors.

In case of a bug, or any other kind of unintentional behavior, feel free to contact me at kidmarscat [at] gmail [dot] com or leave a comment on the SnapPalette download page, kidmarscat.itch.io/snappalette

ChangeLog

Date Version What changed
2024-09 0.2 Updated to match the latest API; slight fixes and optimizations.
2024-07 0.1 First Release, internal use only

Leave a comment

Log in with itch.io to leave a comment.