for(i=[-0:1/160:1])translate([i,0])square([1/160, (gauss( (i))) ]);
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)
Showing posts with label Gaussian. Show all posts
Showing posts with label Gaussian. Show all posts
Sunday, September 17, 2017
0 - 1 Remapping Functions: Gauss
/* remapping functions */
Labels:
0 - 1,
Curve,
ease,
easy ease,
expand,
function,
functions,
Gaussian,
Gaussian step,
generative,
inverse smooth step,
map,
procedural,
remap,
Remap Series,
remapping,
unit functions
Friday, May 12, 2017
Smooth and Gaussian Curve
Takes a linear 0-1 value and apply an S-function.
Gauss is the inverse of that S-function.
function smooth_curve(a) =
let (b = clamp(a))(b * b * (3 - 2 * b));
function clamp(a, b = 0, c = 1) = min(max(a, b), c);
function gauss(x) =
x + (x - smooth_curve(x));
Labels:
bias clamp,
Curve,
easy ease,
function,
Gaussian,
smooth,
Smooth and Gaussian Curve,
smooth step,
smoothstep
Subscribe to:
Posts (Atom)
