Functional Objects           

Function
The second function in sophisticated functions with an added phase parameter and equal amplitudes.
donut by Kit :
a  
  
b  
  
j  
  
k  
  
p  
  
Randomly set the parameter values

Path Step size Scale Max Cycles
Line Line Width Line Color Padding

Function code

            function fn(t,p,scale) {  
            X=scale*(cos(a*t) - Math.pow(cos(b*t+p),j))
            Y=scale*(sin(a*t) - Math.pow(sin(b*t),k))
            return [round(X,5),round(Y,5)];   
            }