Painting (The Canvas Assignment)
Instructions
- Select the shape type, color, and size from the left.
- Click the "Draw Shape" button or click on the canvas to draw a shape at that position.
- Hold down the Ctrl key and drag on the canvas to dynamically adjust the shape size.(Working well on Windows System. Bug in IOS System)
- Click an existing shape on the canvas to select it (a highlighted border will appear). Then modify the control parameters and click "Update Selected Shape" to edit.
- Click the "Undo" button to sequentially remove the last drawn shape; the "Clear" button will clear the entire canvas.
- The drawing state is automatically saved to local storage and will be restored when the page is reopened.