Skip to main content

Function: setFollowsLean()

setFollowsLean(config, on): Partial<BrushConfig>

Defined in: src/lib/brushes/configRanges/index.ts:177

Turn following the pen's lean on or off, as config changes (and tilt off for the rotation, if it followed the lean as in settings saved before ranges).

Parameters​

config​

BrushConfig

on​

boolean

Returns​

Partial<BrushConfig>

Example​

setFollowsLean({ rotationConfig: { useTilt: true } }, false); // { rotationFollowsLean: false, rotationConfig: { useTilt: false } }