Canvas Drawing App
Description:
This is a Canvas Drawing App built using HTML5, CSS, and JavaScript. It provides a simple interface where users can draw on a canvas with different brush sizes and colors. Users can switch between dark and light modes, clear the canvas, and change the brush size and color to suit their preferences.
Features:
- Canvas Drawing: The main feature is a canvas where users can draw using the mouse or touchscreen.
- Brush Size Selection: Users can choose from three brush sizes: Small, Medium, and Large.
- Color Picker: Users can select their preferred color for the drawing using a color picker.
- Clear Canvas Button: Allows users to clear the entire canvas with one click.
- Dark/Light Mode Toggle: Switch between dark and light modes for the canvas and the interface.
How to Use:
Drawing:
- Click and drag the mouse (or use touch gestures on mobile devices) on the canvas to draw.
- The drawing is fluid, following the movement of the pointer or touch.
Change Brush Size:
- Use the dropdown menu to select the brush size (Small, Medium, or Large). The brush size changes accordingly for your drawing.
Change Color:
- Use the color picker to select a color. The selected color will be applied to the brush, allowing you to draw in that color.
Clear Canvas:
- Click the "Clear Canvas" button to erase everything drawn on the canvas and start fresh.
Toggle Dark/Light Mode:
- Click the "Switch to Dark Mode" button to toggle between light and dark themes for the canvas and the page.
Practical Use:
This app can be used for:
- Basic drawing and sketching: Whether you want to doodle, sketch, or create simple art, the app allows you to do so.
- Interactive tutorials or lessons: Teachers and instructors can use this to demonstrate drawing or sketching techniques in real-time.
- Practice: Perfect for anyone who wants to practice drawing or creating artwork digitally.
- Creative experimentation: Explore different colors and brush sizes, and toggle between dark and light modes to find the best environment for your art.
This app is very simple but can be extended with additional features such as saving drawings, adding shapes, or exporting the canvas content. It is ideal for small, interactive drawing projects or for learning how to work with HTML5 canvas elements.

