Skip to content
1 min read · 48 words

Variable: colorAdjustTool

ts
const colorAdjustTool: Tool<SpooledArtifact>;

Defined in: batteries/tools/color/index.ts:629

Lighten or darken a colour by a percentage of HSL lightness.

Remarks

amount is clamped to [1, 100]; steps is clamped to [1, 10]. With steps > 1 the tool emits a ramp of progressively-adjusted colours, useful for generating tint/shade scales.