for(i=[-0:1/160:1])translate([i, min(0,isinw(i))])
square([1/160, abs(isinw( (i))) ]);
function isinw(i)=gauss(i)-sin(i*360)/2;
function gauss(x) = x + (x - smooth(x));
function smooth (a) =let (b = clamp(a))(b * b * (3 - 2 * b));
function clamp(a, b = 0, c = 1) = min(max(a, b), c);
No comments:
Post a Comment