{"id":51495142,"url":"https://github.com/nklbdev/aseprite-stamp-brush","last_synced_at":"2026-07-07T14:31:07.281Z","repository":{"id":367417137,"uuid":"1280708872","full_name":"nklbdev/aseprite-stamp-brush","owner":"nklbdev","description":"Clone-stamp brush with tiled canvas, smoothstep brush mask, max-alpha blending, pan/zoom, and selection masking. Paint from any part of a cel or its tiled copies.","archived":false,"fork":false,"pushed_at":"2026-06-25T23:35:41.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-26T00:07:15.095Z","etag":null,"topics":["aseprite","aseprite-extension","aseprite-script","brush","lua","lua-programming","paint","painting"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nklbdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-25T21:31:22.000Z","updated_at":"2026-06-25T22:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nklbdev/aseprite-stamp-brush","commit_stats":null,"previous_names":["nklbdev/aseprite-stamp-brush"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nklbdev/aseprite-stamp-brush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nklbdev%2Faseprite-stamp-brush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nklbdev%2Faseprite-stamp-brush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nklbdev%2Faseprite-stamp-brush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nklbdev%2Faseprite-stamp-brush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nklbdev","download_url":"https://codeload.github.com/nklbdev/aseprite-stamp-brush/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nklbdev%2Faseprite-stamp-brush/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35232326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aseprite","aseprite-extension","aseprite-script","brush","lua","lua-programming","paint","painting"],"created_at":"2026-07-07T14:30:53.419Z","updated_at":"2026-07-07T14:31:07.145Z","avatar_url":"https://github.com/nklbdev.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stamp Brush\n\nA clone-stamp brush extension for [Aseprite](https://www.aseprite.org/) — select a source area and paint with it like a stamp. With tiled canvas, smoothstep brush mask, max-alpha blending, pan/zoom, selection masking, and local undo/redo.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Aseprite-1.3+-brightgreen\" alt=\"Aseprite 1.3+\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue\" alt=\"MIT License\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/version-1.0.0-orange\" alt=\"Version 1.0.0\"\u003e\n\u003c/p\u003e\n\nhttps://github.com/user-attachments/assets/1e630c10-5291-4cc8-8258-739a48feb691\n\n## 📜 Table of contents\n\n- [Features](#-features)\n- [How to install](#-how-to-install)\n- [How to use](#-how-to-use)\n- [Controls](#-controls)\n- [FAQ](#-faq)\n\n## 🎯 Features\n\n- **Clone-stamp brush** — paint by sampling color from any part of a cel or its tiled copies.\n- **Soft brush** — smoothstep brush mask with adjustable radius (1-64), softness, and opacity.\n- **Tiled canvas** — display 1×1, 3×1, 1×3, or 3×3 tiles with boundary lines. Tiling works as both a visual reference and a source-wrapping mode.\n- **Max-alpha accumulator** — no blending artifacts on overlapping strokes. Each stroke collects the maximum alpha per pixel and flushes once.\n- **Pan and zoom** — middle-click drag to pan, mouse wheel to zoom (powers of two: 0.5× to 32×). Pinch-to-zoom on trackpad is not supported.\n- **Selection masking** — the brush only paints inside the active selection. Selection outline is rendered with marching-ants-style alternating colors via `BlendMode.DIFFERENCE` for visibility on any background.\n- **Dynamic preview** — see what will be painted before you click, updated in real time.\n- **Stamp spacing** — stamps are interpolated along mouse movement with configurable spacing (25% of radius) for smooth strokes.\n- **Local undo/redo** — Ctrl+Z / Ctrl+Shift+Z with full stroke history. Redo history is cleared on new strokes. Keyboard shortcuts are handled by the canvas widget — they may not work if the canvas loses focus. Click the canvas to restore focus.\n- **Continue editing** — save your work, discard, or continue editing if you close the dialog accidentally.\n- **Auto-expanding cel** — when painting outside the cel bounds, the cel automatically grows to include new pixels. Works exactly like Aseprite's native `PatchCel` command.\n- **Source snapshot** — clone source is captured from the current cel state. Updated after each stroke and on undo/redo, so you can clone from your own modifications.\n- **Full-window dialog** — opens to fill the entire Aseprite window for maximum workspace.\n- **Auto-zoom** — initial zoom level is automatically calculated to fit the content in the available canvas area.\n- **Fixed canvas size** — `workImg` is the full sprite canvas. The cel is drawn onto it at its position. Painting happens in absolute canvas coordinates — no mid-stroke image expansion needed.\n\n## 💽 How to install\n\n1. Download the `.aseprite-extension` file from the [Releases](https://github.com/nklbdev/aseprite-stamp-brush/releases) page.\n2. Double-click the file, or install via _Edit \u003e Preferences \u003e Extensions \u003e Add Extension_.\n3. The \"Clone Stamp\" command will appear in the _Edit_ menu.\n   You can assign a keyboard shortcut via _Edit \u003e Keyboard Shortcuts_ — search for \"Edit \u003e Clone Stamp\".\n\nAlternatively, clone this repository and copy the folder to your Aseprite extensions directory:\n- **macOS**: `~/Library/Application Support/Aseprite/extensions/`\n- **Windows**: `%AppData%/Aseprite/extensions/`\n- **Linux**: `~/.config/aseprite/extensions/`\n\n## 👷 How to use\n\n1. Open an image in Aseprite and select the cel you want to modify (if it is not selected yet).\n2. _(Optional)_ Make a selection if you want to paint only within specific bounds.\n3. Run _Edit \u003e Clone Stamp_.\n4. **Left-click** or **Right-click** on the area you want to clone FROM (sets the source point).\n5. **Left-click and drag** to paint with the clone stamp.\n6. **Right-click** to set a new source point (captures the current canvas state, including your previous strokes).\n7. Use sliders to adjust **Tiled Mode**, **Radius**, **Opacity**, and **Softness**.\n8. Close the dialog — choose **Apply** to commit changes, **Discard** to cancel, or **Continue Editing** to keep working.\n\n### Mouse controls\n\n| Action | Button |\n|---|---|\n| Set source point | Left click (only first time) or Right click (always) |\n| Paint | Left click and drag |\n| Cancel stroke | Right click while drawing |\n| Pan | Middle click and drag |\n| Zoom | Mouse wheel (powers of two) |\n| Brush size | Shift + mouse wheel |\n\n### Keyboard controls\n\n| Action | Shortcut |\n|---|---|\n| Undo | Ctrl+Z (Cmd+Z on macOS) |\n| Redo | Ctrl+Shift+Z or Ctrl+Y (Cmd+Shift+Z or Cmd+Y on macOS) |\n| Apply and close | Enter |\n\n## ❓ FAQ\n\n### The brush doesn't paint outside the cel\n\nMake sure **Tiled Mode** is set to **Both** (value 3). In other modes, source wrapping is disabled in one or both directions.\n\n### Keyboard shortcuts and Shift+scroll don't work\n\nKeyboard events (undo/redo, Shift+scroll) are only received by the canvas widget, not the whole dialog. If the canvas loses focus — e.g., after an `app.alert` popup or clicking outside the canvas — these stop working. Click anywhere on the canvas to restore focus. This is a limitation of the Dialog canvas API architecture.\n\n### Shift+scroll changes brush size unpredictably (macOS)\n\nIf Shift+scroll doesn't change brush size, or the size changes disproportionately (e.g., only decreases), and you use [Linear Mouse](https://linearmouse.app/) on macOS — set **Scrolling Mode** to **By Pixels** and all **Modifier Keys** to **Default Action**.\n\n### The dialog opens too small\n\nThe dialog is set to fill the entire Aseprite window on open. If it appears small, try resizing it manually — the next session will remember the size.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnklbdev%2Faseprite-stamp-brush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnklbdev%2Faseprite-stamp-brush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnklbdev%2Faseprite-stamp-brush/lists"}