JM Tech Power

jm-tech-power-official/Palette

Palette — a friendly desktop drawing app. Freehand brushes, an eraser, a color picker with swatches, undo/redo, and open/export to PNG. Built with Qt (PySide6).

Public Design Windows, macOS, Linux LGPL-3.0 (PySide6)
README.md

Palette — a friendly desktop drawing app

A cheerful mini Paint for your desktop. Grab a brush, pick a color, and draw.

  • Category: Design
  • Version: 1.0.0
  • OS: Linux, macOS, Windows
  • Dependencies: PySide6 (Qt for Python), installed into an isolated venv

Palette is a small desktop painting app built with PySide6. It gives you a white canvas, a brush and an eraser, a strip of preset colors (including the JM greens), full color picking, undo/redo, and open/save so you can load a PNG or JPG, doodle on it, and save your work back out as a PNG.

This release replaces the old terminal color-extractor that used to be called
palette. Palette is now a GUI drawing app.

Install

unzip the package && ./install.sh # Linux / macOS palette # launch

On Windows, run install.ps1 in PowerShell instead:

.\install.ps1

The installer creates an isolated virtualenv just for Palette (so its PySide6 dependency never touches your system Python), installs a palette launcher on your PATH, and on Linux adds a desktop entry so Palette shows up in your applications menu. Uninstall with ./uninstall.sh (or .\uninstall.ps1).

  • Linux/macOS: app lives in ~/.local/share/palette, launcher at

~/.local/bin/palette.

  • Windows: app lives in %LOCALAPPDATA%\Programs\palette, palette.cmd on PATH.

Using Palette

  • Brush — draw freehand strokes. Adjust thickness with the Size slider.
  • Eraser — paint white to rub things out.
  • Color… — open a full color picker, or click a swatch in the color

strip for a quick pick (the JM greens #0F9D58 / #3DDC84 are in there).

  • New — start a fresh canvas at a size you choose (default 800×600, white).
  • Open — load a PNG/JPG/BMP onto the canvas.
  • Save PNG — export your drawing as a PNG.
  • Clear — wipe the canvas back to white.
  • Undo / Redo — Ctrl+Z to undo, Ctrl+Shift+Z or Ctrl+Y to redo.

Palette snapshots the canvas at the start of each stroke (bounded history).

The toolbar holds the tools and swatches; the status bar shows the current tool, color (swatch + hex), and brush size.

Command line

palette # launch the app palette --version # prints: palette 1.0.0 (no PySide6 needed) palette --selftest # build the app offscreen, tick once, exit 0

--selftest sets the Qt "offscreen" platform, constructs the window, processes events once, and as a bonus draws a line on a QImage and writes a temporary PNG to confirm the drawing path works headlessly.

Notes

  • Built with PySide6 (not PyQt). PySide6 is imported lazily, so

palette --version works even before the dependency is installed.

  • Open supports PNG/JPG/BMP; Save always writes PNG.