Features:
- Brush Drawing: Users can draw on the canvas using a brush, whose color and thickness can be easily adjusted.
- Color Selection: A color palette is located at the bottom of the canvas, allowing you to choose any desired shade for your drawing.
- Responsive Design: The canvas automatically adjusts to the screen size, ensuring comfortable drawing on any device.
How to Use:
- Select Color: Use the color palette below the canvas to choose the color you want to use.
- Start Drawing: Click and hold the left mouse button to start drawing. Move the cursor to create lines.
- Release the Mouse Button: Release the button to finish the current line. You can start a new line anywhere on the canvas.
Technical Details: The canvas is implemented using the HTML5 <canvas> element, which provides powerful capabilities for graphic rendering in browsers. JavaScript is used to handle mouse events and manage drawing.