Colour mode

Scan .aseprite colour modes and verify they are the correct colour mode.

When it runs

  • An ancestor directory provides pixelartlint.toml with a [tool.pixel_linter.colour_mode] section.
  • The severity of the rule is set to "warn" or "error".

If no palette section exists, this rule is skipped for that file.

Transparent pixels

With include_transparent = true (the default), pixels where every channel is zero do not need to appear in colours. Set it to false when transparency must still match an explicit swatch entry.

Severity

One of off, warn or error.

Violations

Aseprite example
sprites/player/walk.aseprite has invalid colour mode:
    expected 'indexed' but uses 'rgba'