Go to the first, previous, next, last section, table of contents.


gain

Function: gain { g x -> r }
file: jobg.t
package: muf
status: alpha

Yet another handy little function for remapping the unit interval.

if (x < 0.5)    r =       bias( 1.0-g,       2.0*x ) * 0.5;
else            r = 1.0 - bias( 1.0-g, 2.0 - 2.0*x ) * 0.5;


Go to the first, previous, next, last section, table of contents.