Python中的魔杖path_elliptic_arc()函数
path_elliptic_arc()是专门为路径引入的函数。 path_elliptic_arc() 从当前点绘制一条椭圆弧到我们希望弧线绘制到的特定点。
让我们看看这个函数需要的参数。
Syntax :
Parameters:
Parameter Input Type Description to sequence or (numbers.Real, numbers.Real) pair which represents coordinates to draw to. radius collections.abc.sequence or (numbers.Real, numbers.Real) pair which represents the radii of the ellipse to draw. rotate bool degree to rotate ellipse on x-axis. large_arc bool draw largest available arc. clockwise bool draw arc path clockwise from start to target. relative bool treat given coordinates as relative to current point.
例子:画一条椭圆曲线。
Python3
wand.drawing.path_elliptic_arc(to, radius, rotation, large_arc, clockwise, relative)
输出 :