You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a plain number or percentage is specified (without a color-adjuster),
114
-
it applies to all color channels in the given colorspace equally.
113
+
When a plain number or percentage is specified (without a [=color-adjuster=]),
114
+
it applies to all color channels in the given [=colorspace=] equally.
115
115
116
116
If the plain number or percentage is omitted,
117
117
it defaults to 50% (an equal mix of the two colors).
118
118
119
-
The xyz colorspace is CIE XYZ and allows computation to be done
120
-
in a linear-light-intensity space..
119
+
The [=xyz=] colorspace is CIE XYZ, with a D50 whitepoint, and allows computation to be done
120
+
in a linear-light-intensity space.
121
121
122
122
The meaning of the adjusters is defined by colorspace.
123
-
For example, if the colorspace is hsl,
123
+
For example, if the [=colorspace=] is [=hsl=],
124
124
hue means the HSL hue, which is not the same as the LCH hue;
125
-
if the colorspace is LCH,
125
+
if the colorspace is [=lch=],
126
126
lightness means the LCH Lightness, which is the same as Lab lightness,
127
127
but different to the HSL Lightness.
128
128
129
-
Only the adjusters defined for a given colorspace are available.
129
+
Only the [=color-adjuster=]s defined for a given [=colorspace=] are available.
130
130
For example,
131
-
it is not possible to use the HWB whiteness adjuster unless the colorspace is hwb.
131
+
it is not possible to use the HWB [=whiteness=] adjuster unless the colorspace is [=hwb=].
132
132
133
133
If the specified colorspace has a smaller gamut
134
134
than the one in which the color to be adjusted is specified,
135
135
gamut mapping will occur.
136
136
137
-
Note: not all adjusters are equally useful.
137
+
Note: not all [=color-adjuster=]s are equally useful.
138
138
Adjustments in LCH are the most useful, which is why it is the default.
139
139
Adjustments on the a and b axes are rarely needed.
140
140
Adjustments in the srgb-related spaces (srgb itself, hsl, hwb)
@@ -144,7 +144,7 @@ Adjusting the individual x, y and z channels will produce significant hue shifts
144
144
however, adjusting all three channels together is useful
145
145
and will lighten or darken the color.
146
146
147
-
The hueadjuster takes optional keywords, because there are two ways around the hue circle. If no keyword is specified, it is as if ''shorter'' were specified. ''increasing'' is the direction of increasing hue angle; ''decreasing'' is the direction of decreasing hue angle. If the hue difference is exactly 180 degrees,
147
+
The [=hue-adjuster=] takes optional keywords, because there are two ways around the hue circle. If no keyword is specified, it is as if ''shorter'' were specified. ''increasing'' is the direction of increasing hue angle; ''decreasing'' is the direction of decreasing hue angle. If the hue difference is exactly 180 degrees,
148
148
it is as if ''decreasing'' were specified.
149
149
150
150
<div class="example">
@@ -323,12 +323,25 @@ are copied across from the <em>first</em> color.
323
323
324
324
</div>
325
325
326
-
<!-- number | percent is ambiguous for lightness because lightness is itself a percentage -->
* mix result is <span class="swatch" style="--color: rgb(72.300% 38.639% 53.557%)"></span> lch(53.0304% 38.9346, 352.8138) which is rgb(72.300% 38.639% 53.557%)
343
+
</div>
330
344
331
-
<!-- <img src="images/mix_red_white_lightness50.png" alt="Result of color-mix(red, white, lightness(50%)" /> -->
332
345
333
346
<div class="example">
334
347
This example produces the mixture of red and yellow,
0 commit comments