/Drawing-Different-Shapes-using-JavaScript-on-Mousedrag-

Its a very small project which I have created after learning java-script. The project is about to draw shapes like Triangles and Circles on canvas element using mouse drag functionality available on java-script (similar to MS paint).

Primary LanguageHTML

Drawing Shapes like Circle and Triangle on canvas using JavaScript on Mousedrag

Its a very small project which I have created after learning java-script. The project is about to draw Triangles and Circles on canvas element using mouse drag functionality available on java-script (similar to MS paint).

What does the program do

  • Click and drag the mouse to draw Triangles or Circles.
  • Click on existing shapes to change its position in canvas.
  • Double Click on a shape to delete.

About The File

Its a single .html file which contains a java-script code to draw shapes on canvas.

Screenshot

img1