4/5/2024 0 Comments 2d drawing onlineCanvasRenderingContext2D.arc()Īdds a circular arc to the current path. CanvasRenderingContext2D.quadraticCurveTo()Īdds a quadratic Bézier curve to the current path. CanvasRenderingContext2D.bezierCurveTo()Īdds a cubic Bézier curve to the current path. CanvasRenderingContext2D.lineTo()Ĭonnects the last point in the current sub-path to the specified (x, y) coordinates with a straight line. ![]() Moves the starting point of a new sub-path to the (x, y) coordinates. If the shape has already been closed or has only one point, this function does nothing. It tries to draw a straight line from the current point to the start. CanvasRenderingContext2D.closePath()Ĭauses the point of the pen to move back to the start of the current sub-path. Call this method when you want to create a new path. ![]() Starts a new path by emptying the list of sub-paths. ![]() The following methods can be used to manipulate paths of objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |