Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/btf-kabir-2020/canvas-drawing-app

A feature-packed canvas drawing app built with React and Vite. Supports tools, custom colors, local storage for data persistence, and image export with transparency options.
https://github.com/btf-kabir-2020/canvas-drawing-app

canvas-drawing drawing-app drawing-tools front-end html html5-canvas mobile-friendly paint-app pwa react-app reactjs save-drawing ui web web-app website

Last synced: about 21 hours ago
JSON representation

A feature-packed canvas drawing app built with React and Vite. Supports tools, custom colors, local storage for data persistence, and image export with transparency options.

Awesome Lists containing this project

README

        

# Canvas Drawing Application

This is a feature-rich canvas drawing application built with React and Vite. Users can draw with various tools, select custom colors, and save their creations. The application stores user data locally, ensuring progress is never lost, even if the browser is refreshed or closed.

## Features

- **Drawing Tools**: Choose from a brush, eraser, rectangle, circle, and triangle tools.
- **Color Palette**: Use a predefined color palette or select custom colors for your drawings.
- **Canvas Controls**: Clear the canvas or save your artwork as an image (supports transparent and non-transparent exports).
- **Persistent Data**: User data is stored in the browser's local storage, preserving your progress and tool settings.
- **Responsive Design**: Fully functional on desktop and mobile devices.
- **Export Options**: Download your drawings with or without transparency.
- **PWA Support**: The application works as a Progressive Web App, enabling offline usage and the ability to add to the home screen on mobile devices.

## Live Demo

You can view a live demo of the application [here]([https://www.example.com](https://canvas-drawing-app-zeta.vercel.app/)).

## Screenshots

![Canvas Drawing Application](https://github.com/user-attachments/assets/cbc5c760-f11d-4ba1-bb0c-07d3c19d78b1)

## Installation

To run this application locally, follow these steps:

1. Clone the repository:
```bash
git clone https://github.com/BTF-Kabir-2020/Canvas-Drawing-App.git
cd Canvas-Drawing-App

2. Install the dependencies:
```bash
npm install

3. Start the application:

```bash
npm start

4. Open your browser and navigate to http://localhost:3000.

Usage

Select a drawing tool from the toolbar.
Pick a color from the color palette or create a custom color.
Use your mouse or touch screen to draw on the canvas.
Clear the canvas by clicking "Clear Canvas."
Save your artwork by clicking "Save as Image" (choose between transparent or non-transparent exports).

Technologies Used

- React.js
- Vite
- JavaScript
- HTML5 Canvas
- CSS
- Zustand (State Management)
- PWA (Progressive Web App)
- TailwindCSS

License
This project is licensed under the
[LICENSE](./LICENSE)

This project is licensed under the BSD 2-Clause License. See the LICENSE file for details.

Created by [BTF Kabir](https://github.com/BTF-Kabir-2020).