Skip to content

This is a tool made with javascript to draw & write online freehand with pencil & draw shapes, emojis, icons & images.

Notifications You must be signed in to change notification settings

vr-patel/freehand-drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Freehand Drawing Tool 🎨

A versatile web-based drawing application built with JavaScript that allows users to create digital artwork with a variety of tools and features.

✨ 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

🚀 Demo

https://vr-patel.github.io/freehand-drawing/

🛠️ Technologies Used

  • JavaScript - Core functionality and interactivity
  • HTML5 Canvas - Drawing surface and rendering
  • CSS3 - Styling and responsive design
  • Modern Web APIs - Touch/mouse event handling

📦 Installation

  1. Clone the repository

    git clone https://github.com/vr-patel/freehand-drawing.git
    cd freehand-drawing
  2. Open in browser

    # Simply open index.html in your web browser
    open index.html
    # Or double-click the index.html file

🖱️ Usage

Basic Drawing

  1. Select the pencil tool from the toolbar
  2. Click and drag on the canvas to draw freehand
  3. Adjust brush size and color as needed

Drawing Shapes

  1. Choose a shape tool (rectangle, circle, line)
  2. Click and drag to create the shape
  3. Shapes are automatically rendered with smooth edges

Adding Content

  1. Use the emoji picker to add expressive elements
  2. Upload and place images on your canvas
  3. Select from a library of icons and symbols

Controls

  • 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

🎯 Key Features

Drawing Tools

  • Pencil with variable thickness
  • Eraser for corrections
  • Shape tools for precise geometry
  • Text input for annotations

Customization Options

  • Color palette with custom color selection
  • Adjustable brush sizes
  • Opacity controls
  • Different drawing modes

Content Library

  • Emoji integration for fun additions
  • Icon library for professional diagrams
  • Image upload and placement
  • Template shapes and objects

🌐 Browser Compatibility

  • ✅ Chrome 60+
  • ✅ Firefox 55+
  • ✅ Safari 11+
  • ✅ Edge 79+
  • ✅ Mobile browsers (iOS Safari, Chrome Mobile)

📱 Responsive Design

The application is fully responsive and works on:

  • Desktop computers
  • Tablets
  • Mobile phones
  • Touch-enabled devices

🤝 Contributing

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.

Development Setup

  1. Fork the repository
  2. Create your 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

🔮 Future Enhancements

  • Layer support for complex drawings
  • Export functionality (PNG, SVG, PDF)
  • Collaborative drawing features
  • More advanced shape tools
  • Animation capabilities
  • Cloud save functionality

📄 License

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

👨‍💻 Author

VR Patel

🙏 Acknowledgments

  • 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!

About

This is a tool made with javascript to draw & write online freehand with pencil & draw shapes, emojis, icons & images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •