Skip to content

sRGB Saturation Scale

color scale

type: color-srgb-saturation-scale

A decision to define a saturation scale for sRGB colors.

Models

The following models can be used to produce a sRGB Saturation Scale decision.

Explicit value

Defines a sRGB saturation scale with arbitrary percentage values.
Sample decision
sRGB Saturation Scale Explicit Sample
0.05
0.1
0.15

Model:

color-srgb-saturation-scale/explicit

Params:

  • values

    0.050.10.15

Sample data
{
"name": "sRGB Saturation Scale Explicit Sample",
"model": "color-srgb-saturation-scale/explicit",
"params": {
"values": [
0.05,
0.1,
0.15
]
}
}
🐘 Help wanted: Documenting schemas

Bounded

Defines a sRGB saturation scale interpolating linearly between two saturation values.
Sample decision
sRGB Saturation Scale Bounded Sample
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9

Model:

color-srgb-saturation-scale/bounded

Params:

  • from

    0.1

  • to

    0.9

  • steps

    7

Sample data
{
"name": "sRGB Saturation Scale Bounded Sample",
"model": "color-srgb-saturation-scale/bounded",
"params": {
"from": 0.1,
"to": 0.9,
"steps": 7
}
}
🐘 Help wanted: Documenting schemas

Anchored

Defines a sRGB saturation scale from an anchor value applying modifiers to generate items before and/or after the anchor .
Sample decision
sRGB Saturation Scale Anchored Sample
0.1
0.3
0.5
0.6
0.7
0.8

Model:

color-srgb-saturation-scale/anchored

Params:

  • anchor

    0.5

  • before

    [object Object]

  • after

    [object Object]

Sample data
{
"name": "sRGB Saturation Scale Anchored Sample",
"model": "color-srgb-saturation-scale/anchored",
"params": {
"anchor": 0.5,
"before": {
"steps": 2,
"modifier": {
"mode": "linear",
"by": -0.2
}
},
"after": {
"steps": 3,
"modifier": {
"mode": "linear",
"by": 0.1
}
}
}
}
🐘 Help wanted: Documenting schemas