Start Drawing With the Canvas. Optionally with a maximum width to draw. If the canvas or source rectangle width or height is zero. Here x and y specify the position on the canvas (relative to the origin) of the top-left corner of the rectangle and width and height are width and height of the rectangle.. Drawing a Circle on HTML Canvas. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. p5.js is free and open-source because we believe software, and the tools to learn it, should be accessible to everyone. Draw Lines. bezierCurveTo (20, 80, 40, 102, 75, 120); ctx. The image has no image data. To learn more about