数学图形(1.41)super spiral超级螺线

一种很酷的螺线,看着有种分形学的感觉.参考自http://www.2dcurves.com/spiral/spirallos.html

其数学的极坐标表达式如下:

我的脚本代码如下:

#http://www.2dcurves.com/spiral/spirallos.html

vertices = 36000

t = from (0) to (32*PI)

a = rand2(1, 100)
b = rand2(1, 100)
c = rand2(-1, 1)
d = rand2(0.1, 5)
f = rand2(0.1, 1)

m = abs(cos(d*t))^a
n = abs(sin(d*t))^b

p = pow(E, f*t)*pow(m+n,c)

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

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