数学图形(1.43)贝壳形曲线与鱼形曲线

贝壳形曲线

#http://curvebank.calstatela.edu/naturalcurves/slide7.jpg

vertices = 12000

t = from 0 to (2*PI)

r = 10*(0.7 + 2.6*cos(t) + 1.3*pow(sin(90*t), 3))

x = r*sin(t)
y = r*cos(t)

鱼形曲线

#http://www.2dcurves.com/quartic/quarticfi.html
vertices = 1000
t = from 0 to (2*PI)
x = cos(t) - sin(t)^2/sqrt(2)
y = 0.5*sin(2*t)
a = 10
x = x*a
y = y*a

原文地址:https://www.cnblogs.com/WhyEngine/p/3844048.html