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_x1float曲线第一个控制点的 x 坐标(单位:像素)。
ctr_y1float曲线第一个控制点的 y 坐标(单位:像素)。
ctr_x2float曲线第二个控制点的 x 坐标(单位:像素)。
ctr_y2float曲线第二个控制点的 y 坐标(单位:像素)。
end_xfloat曲线端点的横坐标(单位:像素)。
end_yfloat曲线端点的y坐标(单位:像素)。

也可以看看