for(i=[-0:1/160:1])translate([i,0])square([1/160, (smooth( (i),2/3,0.1))]);
function smooth (a) =let (b = clamp(a))(b * b * (3 - 2 * b));
function clamp(a, b = 0, c = 1) = min(max(a, b), c)
Thursday, September 7, 2017
0 - 1 Remapping Functions: Smooth Step
/* remapping functions */
Labels:
0 - 1,
Curve,
function,
functions,
generative,
map,
procedural,
remap,
Remap Series,
remapping,
smooth step,
step,
unit functions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment