Skip to content

A modern, feature-rich pixel art editor built with vanilla JavaScript, HTML, and CSS. Create retro-style pixel art directly in your browser with an intuitive interface and powerful drawing tools.

License

Notifications You must be signed in to change notification settings

hsr88/pixel-art-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ Pixel Art Creator

A modern, feature-rich pixel art editor built with vanilla JavaScript, HTML, and CSS. Create retro-style pixel art directly in your browser with an intuitive interface and powerful drawing tools.

Pixel Art Creator License HTML5 CSS3 JavaScript

โœจ Features

๐Ÿ–Œ๏ธ Drawing Tools

  • Draw - Freehand pixel drawing
  • Erase - Remove pixels (also via right-click)
  • Fill - Bucket fill with flood algorithm
  • Line - Draw straight lines (Bresenham's algorithm)
  • Rectangle - Draw rectangle outlines
  • Circle - Draw circle outlines (Midpoint algorithm)

๐ŸŽจ Color Options

  • Color picker for unlimited colors
  • 24 preset color palette
  • Quick color selection
  • Visual active color indicator

โš™๏ธ Customization

  • Grid Sizes: 16x16, 32x32, 48x48
  • Pixel Sizes: 6px, 8px, 10px, 12px
  • Responsive canvas that adapts to settings

๐Ÿ’พ Export & Save

  • Download PNG - Export your art as PNG image
  • Gallery - Save to browser localStorage
  • High-quality export without grid lines

๐Ÿš€ Demo

Live Demo

๐Ÿ“ธ Screenshots

Zrzut ekranu 2025-11-29 234039

๐Ÿ› ๏ธ Installation

Option 1: Clone the Repository

git clone https://github.com/hsr88/pixel-art-creator.git
cd pixel-art-creator

Option 2: Download ZIP

Download the ZIP file from the releases page and extract it.

๐ŸŽฎ Usage

  1. Open index.html in your web browser
  2. Select a tool from the toolbar
  3. Choose your colors from the palette or color picker
  4. Click and drag on the canvas to draw
  5. Use the settings to adjust grid and pixel size
  6. Export your artwork when finished!

Keyboard Shortcuts

  • Right Click - Quick erase
  • Mouse Drag - Continuous drawing

๐Ÿ“ Project Structure

pixel-art-creator/
โ”‚
โ”œโ”€โ”€ index.html          # Main HTML file
โ”œโ”€โ”€ style.css           # All styling and animations
โ”œโ”€โ”€ script.js           # Application logic
โ””โ”€โ”€ README.md           # This file

๐ŸŽจ Color Palette

The app includes a carefully curated palette of 24 colors:

  • Grayscale (Black, White, Grays)
  • Primary colors (Red, Green, Blue, Yellow, etc.)
  • Extended palette (Orange, Pink, Brown, etc.)
  • Special colors (Purple gradients, Cyan tones)

๐Ÿ”ง Customization

Adding New Colors

Edit the colorPalette array in script.js:

const colorPalette = [
    '#000000', '#FFFFFF', // Add your colors here
    // ...
];

Changing Grid Sizes

Modify the options in index.html:

<select id="gridSize">
    <option value="16">16 x 16</option>
    <option value="64">64 x 64</option> <!-- Add new size -->
</select>

๐ŸŒ Browser Support

  • โœ… Chrome (recommended)
  • โœ… Firefox
  • โœ… Safari
  • โœ… Edge
  • โš ๏ธ IE11 (limited support)

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Ideas for Contributions

  • Add undo/redo functionality
  • Implement layers system
  • Add more drawing tools (spray, gradient)
  • Create animation frames support
  • Add export to different formats (SVG, GIF)
  • Implement custom brush sizes
  • Add keyboard shortcuts panel

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author

hsr88

๐Ÿ™ Acknowledgments

  • Pixel art font: Press Start 2P
  • Inspired by classic pixel art editors
  • Built with โค๏ธ for the pixel art community

๐Ÿ“Š Stats

GitHub stars GitHub forks

๐Ÿ”ฎ Future Features

  • Undo/Redo system
  • Layers support
  • Animation frames
  • Import existing images
  • Custom canvas backgrounds
  • Grid toggle
  • Symmetry drawing mode
  • Color mixer
  • Eyedropper tool
  • Touch device support

๐Ÿ’ก Tips & Tricks

  1. Fast Drawing: Click and drag to draw continuously
  2. Quick Erase: Use right-click instead of switching to eraser
  3. Perfect Shapes: Use Line, Rectangle, and Circle tools for clean geometry
  4. Color Workflow: Use the preset palette for quick access to common colors
  5. Export Quality: Exported PNGs are clean without grid lines

๐Ÿ› Known Issues

  • None at the moment! Report issues on GitHub.

๐Ÿ“ฑ Mobile Support

While the app works on mobile devices, it's optimized for desktop use with a mouse for the best experience.


Made with pixel-perfect precision ๐ŸŽฎโœจ

Star โญ this repository if you find it useful!

About

A modern, feature-rich pixel art editor built with vanilla JavaScript, HTML, and CSS. Create retro-style pixel art directly in your browser with an intuitive interface and powerful drawing tools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published