Skip to content
Ghael-VPublic

About

Pixel art editor in Python (tkinter, zero dependencies) where each pixel is painted with a click, spreadsheet-style. Independent color/tool per mouse button, dynamic rows/columns, real transparency, undo/redo, .pixcake project files, PNG/multi-res ICO import & export.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixCake 🧁

A pixel art editor that behaves like a spreadsheet: create a canvas of X by Y pixels and paint it cell by cell. Left-click and right-click each hold their own independent color or tool, rows and columns can be added or removed at any time, and projects are saved as plain, human- (and AI-) readable JSON.

PixCake screenshot

Features

  • Spreadsheet-style painting — click a pixel to paint it, drag to paint a stroke (with line interpolation so fast drags don't leave gaps).
  • Independent left/right click — each mouse button has its own tool (Pencil, Eraser, Paint Bucket, Eyedropper) and its own color.
  • Real transparency — canvases default to a transparent background, rendered as the usual checkerboard pattern. The eraser always erases to true transparency, not to a background color.
  • Resize on the fly — add or remove rows/columns from any edge (top, bottom, left, right) without losing your work.
  • Undo/redo, zoom, and an optional pixel grid overlay.
  • Save/load projects as .pixcake files — plain JSON, so a script (or an LLM) can generate or edit pixel art without touching the UI.
  • Import images (PNG/GIF) and pixelate them into a grid of any size, with block-averaging downscaling and transparency detection.
  • Export to PNG (with alpha, any integer scale) and to multi-resolution .ico (16/32/48/64/128/256, nearest-neighbor scaled so edges stay crisp).
  • Zero dependencies — built entirely on Python's standard library (tkinter), including a from-scratch PNG/ICO encoder.

Running from source

Requires Python 3.8+ (uses only the standard library, no pip install needed):

python main.py

Download

Prebuilt Windows executables are published on the Releases page — no Python installation required.

Building the executable yourself

pip install pyinstaller
pyinstaller --onefile --windowed --name PixCake --icon assets/icon.ico ^
    --add-data "assets/icon.ico;assets" main.py

The resulting PixCake.exe will be in dist/.

The .pixcake file format

A project is a small JSON document:

{
  "format": "pixcake",
  "version": 1,
  "width": 16,
  "height": 16,
  "background": null,
  "pixels": [["#FF0000", null, "..."], ["..."]]
}

background/pixel colors are either a "#RRGGBB" string or null for a transparent pixel. Because it's just JSON, projects can be generated or edited programmatically — see examples/cupcake_example.pixcake for a small sample (preview below), written entirely by hand/script rather than through the UI.

Example cupcake pixel art

About

Pixel art editor in Python (tkinter, zero dependencies) where each pixel is painted with a click, spreadsheet-style. Independent color/tool per mouse button, dynamic rows/columns, real transparency, undo/redo, .pixcake project files, PNG/multi-res ICO import & export.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages