A web-based bitmap editor specifically designed to generate U8G2-compatible bitmap data in .h file format for OLED displays and embedded systems.
Try online BitsDraw on GitHub Pages
- Pencil Tool: Precise pixel drawing with smooth curves
- Brush Tool: Variable size drawing with multiple patterns
- Shape Tools: Rectangle, circle, and line tools with modifier key support
- Selection Tools: Rectangle and circle selection with copy/paste operations
- Advanced Text System: Complete text object management with post-placement editing, multi-line support, and custom fonts
- Bucket Fill: Smart fill with contiguous area detection
- Move Tool: Layer movement with loop wrapping
- Guide Tool: Visual guides for precise positioning
- Multi-Sheet Animation: Create frame-by-frame animations
- Playback Controls: Play, pause, stop, and frame navigation
- Onion Skinning: Previous frame overlay for animation reference
- Variable Speed: 1-30 FPS animation speed control
- Loop Animation: Seamless loop playback option
- GIF Export: Multi-strategy animated GIF export with quality settings
- Layer System: Multiple layers with visibility and blending controls
- Zoom & Pan: 1x to 32x zoom with Hand tool navigation
- Pattern System: MacPaint-inspired patterns with custom pattern support
- Display Modes: Multiple color themes (LCD, night mode, amber, etc.)
- Grid & Guides: Visual aids for precise editing
- Undo/Redo: Complete history system
- Text Object Management: Post-placement text editing with selection and movement
- Custom Font System: Upload and manage custom bitmap fonts
- Enhanced Error Handling: User-friendly error dialogs with recovery suggestions
- Image Import: PNG/JPG with advanced dithering (7 algorithms)
- U8G2 Export: Generate C header files for Arduino/ESP32
- Multiple Formats: Adafruit GFX, Game Boy 2BPP with optimized encoding
- PNG Export: Direct image file export with high-quality rendering
- GIF Animation Export: Multi-strategy animated GIF export with quality settings
- Text Objects: Import/export text object collections for project templates
- Custom Fonts: Import/export custom bitmap font collections
- Project Management: Save/load complete BitsDraw project files
Visit BitsDraw on GitHub Pages to start drawing immediately.
- Clone this repository
- Open
index.htmlin any modern browser - Start creating bitmap art!
No build process or server required - BitsDraw is a pure static web application.
- Create Frames: Use "Add Sheet" to create animation frames
- Draw Content: Create different content on each sheet/frame
- Preview Animation: Use playback controls to test your animation
- Onion Skinning: Enable to see previous frame while drawing
- Export: Generate C code or export as images
- Modern web browser (Chrome 60+, Firefox 55+, Safari 12+, Edge 79+)
- No installation required
- Works offline after initial load
- Pure Static Web App: HTML5, CSS3, vanilla JavaScript
- No Dependencies: No frameworks or build tools required
- Canvas API: Hardware-accelerated bitmap rendering
- Pixel-Perfect: Optimized for pixel art creation
- Internal format:
Uint8Arraywhere 0=white, 1=black - U8G2 compatible: LSB first, XBM format
- Layer support: Multiple drawing layers with alpha channels
- β Chrome 60+
- β Firefox 55+
- β Safari 12+
- β Edge 79+
- Complete text object management with post-placement editing
- Multi-line text rendering with word wrapping and alignment
- Custom font system with upload, validation, and management
- Enhanced error handling with user-friendly dialogs and recovery
- GIF animation export with multi-strategy encoding and quality settings
- Text object import/export for project templates
- Fixed brush cursor positioning during zoom and pan operations
- Corrected text tool modal and preview positioning
- Unified coordinate transformation system
- Eliminated double-offset calculations
- Complete animation control system with playback
- Advanced onion skinning with smart background detection
- Pan support for onion skin overlay
- Project background management
- Zoom-aware pixel-perfect preview for shape tools
- Modern About dialog with support links
- Enhanced UI consistency
- Multi-font support (5Γ7, 3Γ5, 7Γ9)
- Modern modal dialog system
- Live text preview
- Authentic MacPaint patterns
- Viewport navigation with red frame preview
- Streamlined interface
This project welcomes contributions! Areas for improvement:
- Additional export formats
- More drawing tools
- Enhanced animation features
- Performance optimizations
Copyright Β© 2025 Leo Kuroshita. All rights reserved.
Tribute to Bill Atkinson and Susan Kare for their pioneering work in bitmap graphics and user interface design.
If you find BitsDraw useful, consider buying me a coffee!