Make a drawing canvas using Vanilla JavaScript.
- Set up basic files(html,css and js).
- Make canvas in html file.
- Control the canvas size function using resize event.
- Drawing line on the canvas.
- When mouse continue press on the canvas, the line thickens.
- Change the line color like a rainbow.
- Set up basic files(html,css and js).
- Make canvas in html file.
- Control the canvas size function using resize event.
- Drawing line on the canvas.
- When mouse continue press on the canvas, the line thickens.
- Change the line color like a rainbow.