Sort swatches by usage [suggestion]

Hello,

Could there please be the possibility to sort the palette based on the colors’ frequency (in the Sort & Gradients menu) – a.k.a how many pixels every color has?

This would allow users to have their most used colors of an indexed artwork on the top of their palette.

3 Likes

I’m boosting your demand as I was typing the exact same suggestion before noticing you already did!

With such a feature we could immediately see which color is not used enough and doesn’t justify wasting a slot + can be replaced by another.

When I’m making 16-color palette limited SEGA Genesis graphics, it’s crucial to have optimized palettes!

Currently, when making a piece, I’m checking by magicwanding/bucketting colors I suspect but it’s a bit tedious.

Hey there, thanks for reminding me of this ancient post!

Since the idea was never addressed by @dacap, let’s refresh it:) What do you think David, could this be done?

1 Like

Hi there! it looks like a good idea and maybe not so hard to implement! Taking note (not sure for v1.2.19 because we want to release it ASAP)

1 Like

In the meantime I discovered this Pixeljoint related tool. It kinda covers my needs but it could still be nicer to have it within Aseprite (in order not to rely on an online external tool and to have a more comfortable workflow).

Here is the link:
http://yanrishatum.ru/pj/

As you can see, not only does it gives color percentage of use (and allows you to sort them), it cleverly highlights the pixels that use so they are easier to spot!

That tool is awesome! The highlighting feature is something i never knew i needed. I really hope this can make it into the program.

So inspired by this feature request I wrote a script that does that:

It totally breaks images with Indexed Color Mode so you’d need to use It in RGB Color Mode. At least change color mode, sort palette, and then swap back to Indexed, I’d do this in a script but Color Mode information seems to be read-only, @dacap?

1 Like

I think you should be able to use app.command.ChangePixelFormat() to change color modes (params are not document yet in the api repo). Anyway I’ll create an issue to make the “remap” feature available from scripts (or after a script that modifies the palette is executed).

1 Like

Thanks a lot - this works, I can add the final polish to this script now. :slight_smile:

1 Like

I like the idea for this feature/script more and more, I added an option to replace every color.
Work with every Color Mode and you can reset colors to their original values.

2 Likes