Skip to content

A small drawing app that lets you create pixel art using a colour palette. You can draw, erase, and export your work as a PNG image. This project helped me learn more about JavaScript events, layout grids, and how to build simple tools that respond to the user’s actions.

Notifications You must be signed in to change notification settings

SUDO-j182/pixel-editor-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Editor

A basic pixel art editor designed for drawing, erasing, and saving small pixel artworks. This project was developed to practice DOM manipulation, event handling, and interactive UI design.


Status: IN DEVELOPMENT
Last Updated: 30/04/2025


Tech Stack

  • Frontend: HTML, CSS, JavaScript (Vanilla)
  • Backend: None (Frontend-only application)
  • Database: LocalStorage (for save/load feature)

|---------------------------------------|---------------| | Pixel grid with adjustable size | Implemented | | Colour selection palette | Implemented | | Click or drag to draw and erase | Implemented | | Save/load artwork locally | Implemented | | Export pixel art as .png | Implemented | | Mobile and desktop compatibility | Implemented | | README documentation | Included |


Frontend Overview

HTML

  • Semantic structure with canvas grid and colour palette
  • Buttons for saving, loading, clearing, and exporting artwork
  • Supports accessibility where practical for a lightweight app

CSS

  • Custom palette based on a 16-colour retro theme
  • Responsive layout supporting both mobile and desktop
  • Styled buttons, palette swatches, and pixel grid cells

JavaScript

  • Handles drawing, erasing, and drag-to-paint functionality
  • Allows saving and loading artwork via localStorage
  • Enables exporting artwork as a downloadable .png
  • Supports adjustable grid size (future zoom feature planned)

Backend Overview

REST API Endpoints

N/A — Frontend-only project using browser storage (localStorage).


Testing Summary (as of 30/04/2025 )

All core features have been manually tested:

  • Pixel drawing and erasing verified on desktop and mobile
  • Save and Load functionality confirmed via localStorage
  • Exported .png file downloads successfully
  • Palette colour selection and drag-to-paint tested

Unit Testing Summary (as of )

No formal unit tests yet implemented. Manual testing used for current version.


Planned Features

  • Add shape tools (rectangle, circle)
  • Add undo/redo functionality
  • Add optional favicon preview mode

Additional Notes

  • Designed with simplicity and speed in mind
  • Focuses on practicing DOM manipulation without frameworks

About

A small drawing app that lets you create pixel art using a colour palette. You can draw, erase, and export your work as a PNG image. This project helped me learn more about JavaScript events, layout grids, and how to build simple tools that respond to the user’s actions.

Resources

Stars

Watchers

Forks

Packages

No packages published