cubic_bezier_to方法
cubic_bezier_to(self, ctr_x1, ctr_y1, ctr_x2, ctr_y2, end_x, end_y)
将三次贝塞尔曲线附加到当前图形。起点是当前图形的终点。
def cubic_bezier_to(self, ctr_x1, ctr_y1, ctr_x2, ctr_y2, end_x, end_y):
...
范围 | 类型 | 描述 |
---|---|---|
ctr_x1 | float | 曲线第一个控制点的 x 坐标(单位:像素)。 |
ctr_y1 | float | 曲线第一个控制点的 y 坐标(单位:像素)。 |
ctr_x2 | float | 曲线第二个控制点的 x 坐标(单位:像素)。 |
ctr_y2 | float | 曲线第二个控制点的 y 坐标(单位:像素)。 |
end_x | float | 曲线端点的横坐标(单位:像素)。 |
end_y | float | 曲线端点的y坐标(单位:像素)。 |