A simple web-based Pixel Art Generator that allows users to create pixel grids, draw pixel art, and save the artwork as a PNG image.
- Create pixel grids of various sizes (adjustable using a range input).
- Draw on the grid with a chosen color (via a color picker).
- Erase parts of the drawing using right-click.
- Save the pixel art as a PNG image.
- HTML
- CSS
- JavaScript
To run the project locally, follow these steps:
Ensure you have a modern web browser (such as Google Chrome or Firefox) to view the application.
- Clone the repository to your local machine:
git clone https://github.com/your-username/pixel-art-generator.git- Navigate into the project folder:
cd pixel-art-generator- Open the index.html file in your web browser:
open index.htmlOr simply double-click index.html to open it in your browser.
- Use the range slider to adjust the size of the pixel grid.
- Click the Create button to generate the grid.
- Choose a color using the color picker and left-click on the grid to start drawing.
- Right-click on the grid to erase pixels.
- Click Save as Image to download your pixel art as a PNG image.
This project is licensed under the MIT License – see the LICENSE file for details.