Function: readRange()
readRange(
config,param):ParamRange
Defined in: src/lib/brushes/configRanges/index.ts:220
Read a setting as the configuration window shows it: its range and each source's (see BrushParamConfig). Sizes
and opacity go from min × the value to the value; rotation from the angle + min to + max degrees; offsets
from the offset + min to + max pixels.
Parameters
config
param
Returns
Example
readRange({ width: 40, widthConfig: { min: 0.25, usePressure: true } }, "width");
// { value: 40, min: 10, max: 40, sources: { pressure: { on: true, min: 0, max: 1 }, … }, varies: true }