8000 Comparing viliusle:master...ydayal5:magic-wand-tool · viliusle/miniPaint · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: viliusle/miniPaint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ydayal5/miniPaint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: magic-wand-tool
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 14 files changed
  • 2 contributors

Commits on Nov 9, 2026

  1. Add Magic Wand selection tool

    New Magic Wand tool selects pixels of similar color, based on the
    Magic Eraser's flood fill.
    
    - Click selects; Shift+click adds, Alt+click subtracts; Mode dropdown
      (New/Add/Subtract) for touch devices
    - Delete erases selection, Ctrl+J copies it to a new layer (cropped),
      Ctrl+E inverts, Ctrl+A selects all, Esc clears
    - Selection shown as green tint with black/white edge outline
    - All selection changes are undoable (Set_magic_wand_selection_action)
    - Edit menu (Delete/Copy Selection/Select All/Invert Selection) works
      with the wand; Ctrl+J also works for rectangle selection
    - Shared color mask builder (libs/color-mask.js) using scanline flood
      fill (Smith 1979; Heckbert 1990), ~3-4x faster than previous fill
    - Magic Eraser now uses the shared builder; fixes inverted Contiguous
      option and wrong image size on layers not matching canvas size
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    ydayal5 and claude committed Nov 9, 2026
    Configuration menu
    Copy the full SHA
    2f1495e View commit details
    Browse the repository at this point in the history
Loading
0