Skip to content

jeslor/draw_anything

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Draw Anything

UI

Draw Anything is a simple react web application that transforms your hand movements into digital art! Utilizing MediaPipe for real-time hand tracking and React for a dynamic user experience, this app allows you to draw in the air with just your fingers. What's more, it soon integrating Google vision and Replicate AI to add a touch of magic, letting you refine your creations into polished, artistic masterpieces.

Check out the live Demo!


✨ Features

  • Real-time Hand Tracking: Draw effortlessly using your index finger and thumb, powered by MediaPipe.
  • Intuitive Drawing Controls: Pinch your index finger and thumb to start drawing, and release to stop.
  • Customizable Colors: Select from a palette of vibrant colors to bring your drawings to life.
  • Drawing History: Undo and Redo your strokes, giving you complete control over your creative process.
  • Clear Canvas: Easily wipe the slate clean to start a new masterpiece.
  • AI-Powered Refinement: (Coming soon) Enhance your rough sketches into refined, artistic illustrations with a single click, thanks to Replicate AI.
  • Responsive and Modern UI: A clean, intuitive interface built with Tailwind CSS ensures a seamless experience across devices.
  • Browser-Based: No installations or downloads needed—start creating directly in your web browser!

💻 Tech Stack


⚙️ Setup & Installation

Ready to unleash your inner artist? Follow these simple steps to get GestureDraw up and running on your local machine:

  1. Clone the repository:

    git clone https://github.com/jeslor/draw_anything.git
    cd draw-anything
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Configure Google Gemini API Key:

    • Obtain your API key from Google AI Studio.
    • Open the src/hooks/useGestureDrawing.js file.
    • Replace "REPLICATE_API_TOKEN" with your actual API TOKEN:
      const REPLICATE_API_TOKEN = "REPLICATE_API_TOKEN"; // Replace this!
  4. Start the development server:

    npm run dev
    # or
    yarn dev

    This will open the application in your browser, usually at http://localhost:5173. Ensure your webcam is enabled and grant permission for the browser to access it.

About

Draw Anything is a fun web app that lets you draw in the air with your fingers using real-time hand tracking powered by MediaPipe. 👆🎨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors