Drawing forms with canvas. Jump to part Rectangles As well as the three techniques we saw in Drawing rectangles, which draw rectangular forms straight to the canvas, there is also the rect() technique, which adds a rectangular road to a path that is currently open. rect(x, y, width, height) attracts a rectangle whose corner that…