for(i=[-0:1/160:1])translate([i,0])square([1/160, ( ( powersmooth(i) )) ]);
function powersmooth(x) = ((x+ x-ipowersmooth(x))-0.5)*0.9+0.5 ;
for(i=[-0:1/160:1])translate([i,0])square([1/160, ( ( ipowersmooth(i) )) ]);
function ipowersmooth(x) = clamp(pow(x-0.5,3)*4+0.5);
function clamp(a, b = 0, c = 1) = min(max(a, b), c);
No comments:
Post a Comment