"""
画有倾斜角度的椭圆,一切都是画出来的。
"""
import math
import turtle
screen = turtle.Screen()
screen.tracer(0,0)
screen.title("画有倾斜角度的椭圆")
turtle.speed(0)
turtle.up()
turtle.pensize(4)
turtle.shape('turtle')
turtle.color('dodger blue')
turtle.shapesize(2,4)
def ellipse(cx,cy,a,b,tilt_angle):
"""
cx,cy:椭圆中心点
a:长半轴,b:短半轴
tilt_angle:倾斜角度
"""
for t in range(361):
j = math.radians(t)
k = math.radians(tilt_angle)
需要完整代码请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)

