MCPcopy Create free account
hub / github.com/adobe/react-spectrum / saturation

Function saturation

packages/react-aria/src/color/useColorAreaGradient.ts:23–23  ·  view source on GitHub ↗
(color: Color)

Source from the content-addressed store, hash-verified

21 .map(hue => color.withChannelValue('hue', hue).toString('css'))
22 .join(', ');
23const saturation = (color: Color) => `${color.withChannelValue('saturation', 0)}, transparent`;
24
25const hslChannels = {
26 hue,

Callers

nothing calls this directly

Calls 1

withChannelValueMethod · 0.80

Tested by

no test coverage detected