Puoi aprire il codice e modificarlo
HELP

Il nome "superellisse" è stato coniato dallo scrittore e inventore danese Piet Hein, che, consultato da un gruppo di urbanisti che nel 1959 dovevano ricostruire una parte centrale di Stoccolma e volevano utilizzare una forma che fosse simile ad una ellisse ma meno "appuntita", utlizzò questa curva. Questa forma venne poi utilizzata per fontane, scrivanie, sedie, letti, piatti, ... da architetti e produttori dei paesi nordici. Per qualche altra informazione vedi: https://en.wikipedia.org/wiki/Superellipse

...
C1="blue"; C2="red"; C3="green"

// r = (|cos(t)/A|^N+|sin(t)/B|^N)^(-1/N)  in coordinate polari
// |x/A|^N + |y/B|^N = 1                   in coordinate cartesiane

B=1; A=6/5*B; N=2.5; n=200; H = 2*Math.PI/n
for(i=0;i<=n; i=i+1) { t = H*i
L1x[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.cos(t)
L1y[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.sin(t)       }

B=3; A=6/5*B; N=2.5; n=200; H = 2*Math.PI/n
for(i=0;i<=n; i=i+1) { t = H*i
L2x[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.cos(t)
L2y[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.sin(t)       }

B=6; A=6/5*B; N=2.5; n=200; H = 2*Math.PI/n
for(i=0;i<=n; i=i+1) { t = H*i
L3x[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.cos(t)
L3y[i]= Math.pow( Math.pow(Math.abs(Math.cos(t)/A),N)+Math.pow(Math.abs(Math.sin(t)/B),N), -1/N )*Math.sin(t)       }
...