Functional Objects           

Function
These curves are generalisations of the equation for a circle r2=x2+y2 when the power 2 is varied. Adjust M and N to change this parameter, a and b for the x and y axis scales.
Astroid by Kit :
N  
  
M  
  
a  
  
b  
  
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*Math.pow(Math.abs(cos(t)),N/M) * a * sgn(cos(t) /10);
            Y=scale*Math.pow(Math.abs(sin(t)),N/M) * b * sgn(sin(t) /10);
            return [round(X,5),round(Y,5)];   
            }