colorSaturate
🌈 Increases the saturation of a color.
Syntax
TypeScript
import { colorSaturate } from '@opentf/std'; colorSaturate({ value: ColorInput; amount: number; to?: ColorFormat }): any
value: The input color.amount: A number between0and1.to: The output format (default:'hex').
Examples
TypeScript
colorSaturate({ value: 'gray', amount: 0.5 }); //=> '#bf4040' colorSaturate({ value: 'gray', amount: 0.5, to: 'hsl' }); //=> 'hsl(0, 50%, 50%)'