A feature packed web-based editor for creating pixel art for Pimoroni Unicorn LED panels. Supports all Unicorn display types with accurate pixel representation and easy-to-use tools.
-
Multi-Device Support:
- Stellar Unicorn (16x16)
- Galactic Unicorn (53x11)
- Cosmic Unicorn (32x32)
-
Drawing Tools:
- Click or drag to draw pixels
- Customisable colour palette
- Shift controls (Left, Right, Up, Down)
- Clear canvas function
-
Import/Export:
- Load from JSON files
- Export as Python code
- Export as PNG image
- View example templates
- Import from images
-
UI Features:
- Dark/Light theme support
- Responsive design
- Consistent pixel sizing
- Real-time preview
The quickest way to start is using our online version.
-
Clone the repository:
git clone https://github.com/fotosyn/UnicornPixelEditor.git cd UnicornPixelEditor
-
Open
index.html
in your web browser.
No additional dependencies or setup required for basic usage.
- Select your Unicorn display type from the "Grid Size" dropdown
- Choose a colour from the palette
- Click or drag on the canvas to draw
- Use shift buttons to move your design
- Export your design as Python code or PNG image
- Load JSON: Import existing designs
- Export: Generate Python code for your Unicorn display
- Export PNG: Save your design as a PNG image
- Examples: View sample templates for each display type
- Export your design using the "Generate Image Data" button
- Copy the generated Python code
- Paste into your Unicorn display's Python script
- Run on your device
- Perfect for small icons and symbols
- 256 total pixels
- Square aspect ratio
- Ideal for scrolling text and wide designs
- 583 total pixels
- Wide aspect ratio
- Best for detailed pixel art
- 1024 total pixels
- Square aspect ratio
UnicornPixelEditor/
├── index.htm # Main HTML file
├── script.js # Core JavaScript functionality
├── styles.css # CSS styles
├── theme-switcher.js # Theme handling
├── images.json # Template data
└── example.json # Example templates
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
- Any Pimoroni Unicorn LED panel
- Raspberry Pi Pico
- USB cable
- Install Thonny IDE
- Install Pimoroni MicroPython
- Connect your Unicorn display
- Copy the generated Python code
- Run on your device
This project is licensed under the MIT Licence - see the LICENSE file for details.
- Created by Fotosyn
- Contributors and community members
- Pimoroni for their excellent LED displays