A versatile web-based drawing application built with JavaScript that allows users to create digital artwork with a variety of tools and features.
- Freehand Drawing: Draw smoothly with pencil tool for natural sketching
- Shape Tools: Create perfect geometric shapes (rectangles, circles, lines, etc.)
- Rich Content: Add emojis, icons, and images to your artwork
- Interactive Canvas: Responsive drawing surface that works on various devices
- Real-time Rendering: Smooth drawing experience with immediate visual feedback
https://vr-patel.github.io/freehand-drawing/
- JavaScript - Core functionality and interactivity
- HTML5 Canvas - Drawing surface and rendering
- CSS3 - Styling and responsive design
- Modern Web APIs - Touch/mouse event handling
-
Clone the repository
git clone https://github.com/vr-patel/freehand-drawing.git cd freehand-drawing
-
Open in browser
# Simply open index.html in your web browser open index.html # Or double-click the index.html file
- Select the pencil tool from the toolbar
- Click and drag on the canvas to draw freehand
- Adjust brush size and color as needed
- Choose a shape tool (rectangle, circle, line)
- Click and drag to create the shape
- Shapes are automatically rendered with smooth edges
- Use the emoji picker to add expressive elements
- Upload and place images on your canvas
- Select from a library of icons and symbols
- Clear Canvas: Remove all drawings and start fresh
- Undo/Redo: Step back or forward through your drawing history
- Color Picker: Choose from a full spectrum of colors
- Brush Size: Adjust line thickness for different effects
- Pencil with variable thickness
- Eraser for corrections
- Shape tools for precise geometry
- Text input for annotations
- Color palette with custom color selection
- Adjustable brush sizes
- Opacity controls
- Different drawing modes
- Emoji integration for fun additions
- Icon library for professional diagrams
- Image upload and placement
- Template shapes and objects
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 11+
- ✅ Edge 79+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)
The application is fully responsive and works on:
- Desktop computers
- Tablets
- Mobile phones
- Touch-enabled devices
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Layer support for complex drawings
- Export functionality (PNG, SVG, PDF)
- Collaborative drawing features
- More advanced shape tools
- Animation capabilities
- Cloud save functionality
This project is licensed under the MIT License - see the LICENSE file for details.
VR Patel
- GitHub: @vr-patel
- Thanks to the open-source community for inspiration
- HTML5 Canvas API documentation and examples
- Contributors who help improve this project
Enjoy creating digital art! 🎨✨
If you find this project useful, please consider giving it a ⭐ star on GitHub!