How steffest/dpaint-js works
DPaint.js is a browser-based pixel-art and animation editor centered on a document-editing workflow: users interact through the editor and tools, modify a layered image and palette, and export to image or Amiga formats. Its major branches include color reduction and dithering, frame-based animation, undo/redo, and Amiga-specific file and emulator support. The graph uses README claims for documented capabilities and the supplied source index or excerpts for implementation links; unsampled modules are not assumed to have inspected call paths.
Main entry points: app.js Application startup · image.js Image document · editor.js Canvas editor · layerUtils.js Layer composition
Components 23
Editor interface
- Application startup
_script/app.js - UI and panels
_script/ui/ui.js - Input handling
_script/ui/input.js - Canvas editor
_script/ui/editor.js - Layer panel
_script/ui/toolPanels/layerPanel.js
Document editing
- Image document
_script/image.js - Undo and redo
_script/services/historyservice.js - Layer composition
_script/util/layerUtils.js - Vector tools
_script/paintTools/vectorTool.js - Bone tools
_script/paintTools/boneTool.js
Pixel processing
- Palette and cycling
_script/ui/palette.js - Image processing
_script/util/imageProcessing.js - Quantization workers
_script/workers/quantize.js - Alternate quantizer
_script/workers/quantize2.js
File formats
- Export generation
_script/fileformats/generate.js - IFF ILBM codec
_script/fileformats/iff.js - Amiga icon codec
_script/fileformats/amigaIcon.js - Format detection
_script/fileformats/detect.js
Animation and Amiga
- Animation playback
_script/services/playbackDriver.js - Recording and export
_script/services/recorder.js - Amiga disk files
_script/fileformats/adf.js - Amiga emulator host
_script/host/amibase.js
Other components
- Artist
Connections 26
- Artist → Application startup: uses
README.md - Application startup → UI and panels: initializes
_script/app.js - Application startup → Image document: uses
_script/app.js - Input handling → Canvas editor: dispatches input
_script/ui/input.js - Canvas editor → Image document: edits
_script/ui/editor.js - Canvas editor → Undo and redo: uses history
_script/ui/editor.js - Layer panel → Image document: reads layers
_script/ui/toolPanels/layerPanel.js - Layer panel → Undo and redo: uses history
_script/ui/toolPanels/layerPanel.js - Image document → Undo and redo: records changes
_script/image.js - Image document → Format detection: detects format
_script/image.js - Image document → Amiga icon codec: uses codec
_script/image.js - Image document → Layer composition: uses layer helpers
_script/image.js - Layer composition → Vector tools: uses vector utilities
_script/util/layerUtils.js - Layer composition → Bone tools: uses deformation
_script/util/layerUtils.js - Palette and cycling → Image processing: reduces colors
_script/ui/palette.js - Image processing → Quantization workers: dispatches quantization
_script/util/imageProcessing.js - Image processing → Alternate quantizer: dispatches quantization
_script/util/imageProcessing.js - Export generation → IFF ILBM codec: uses codec
_script/fileformats/generate.js - Export generation → Amiga icon codec: uses codec
_script/fileformats/generate.js - Application startup → Animation playback: supports animation
- Application startup → Recording and export: supports recording
- Application startup → Amiga disk files: supports disk files
- Application startup → Amiga emulator host: hosts emulator
- Artist → Export generation: exports work
README.md - Artist → Animation playback: animates frames
README.md - Artist → Amiga emulator host: previews work
README.md