Skip to main content

Function: writeSourceProfile()

writeSourceProfile(config, param, source, profile, profileId?): Partial<BrushConfig>

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

Give a source its own profile graph for a setting, as config changes; none removes it.

Parameters​

config​

BrushConfig

param​

VaryingParam

source​

VariationSource

profile​

ProfilePoint[] | undefined

profileId?​

string

Returns​

Partial<BrushConfig>

Example​

writeSourceProfile(config, "width", "pressure", PROFILE_PRESETS[1].content.points, "overweight");