Function: variationFactor()
variationFactor(
config,input,random?):number
Defined in: src/lib/brushes/params/index.ts:97
Combine a parameter's randomise, pressure and tilt shares into one (they multiply). Returns 1 when nothing is
enabled. Each input goes through the source's own profile graph (or the parameter's, see applyProfile) before it
sets the share between the source's min and max. Pressure and tilt only apply to pens; for other devices they count
as full.
Parameters
config
BrushParamConfig | undefined
input
random?
RandomFn = Math.random
Returns
number
Example
variationFactor({ useRandomise: true, minRandomise: 0.5, maxRandomise: 1 }, { isPen: false }, () => 0); // 0.5