Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program API drawing arcTo


May 19, 2021 WeChat Mini Program Development Document


Table of contents


canvasContext.arcTo


Base library 1.9.90 starts to support, and low versions need to be compatible

Defined

Draws the arc path based on the control point and radius.

Grammar

canvasContext.arcTo(x1, y1, x2, y2, radius)

Parameters

The property value Type Description
x1 Number The x-axis coordinates of the first control point
y1 Number The y-axis coordinates of the first control point
x2 Number The x-axis coordinates of the second control point
y2 Number The y-axis coordinates of the second control point
radius Number The radius of the arc