Rectangle is the only primitive type supported by canvas. It has 3 functions: strokeRect(x, y, w, h); fillRect(x, y, w,…
This video tutorial illustrates the drawing of rectangle with styling. Tutorial Includes: Drawing rectangle. Specifying x-axis and y-axis for drawing…