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
Besides specifying absolute coordinates, all color functions can also be used with a *relative syntax* to produce colors in the function's target color space, based on an existing color (henceforth referred to as "origin color"). This syntax consists of the keyword ''from'', a <<color>> value, and optionally numerical coordinates specific to the color function. To allow calculations on the original color's coordinates, there are single-letter keywords for each coordinate and `alpha` that corresponds to the color's alpha. If no coordinates are specified, the function merely converts the origin color to the target function's color space.
590
+
Besides specifying absolute coordinates, all color functions can also be used with a *relative syntax* to produce colors in the function's target [=colorspace=], based on an existing color (henceforth referred to as "origin color"). This syntax consists of the keyword ''from'', a <<color>> value, and optionally numerical coordinates specific to the color function. To allow calculations on the original color's coordinates, there are single-letter keywords for each coordinate and `alpha` that corresponds to the color's alpha. If no coordinates are specified, the function merely converts the origin color to the target function's [=colorspace=].
591
591
592
592
The following sections outline the relative color syntax for each color function.
593
593
@@ -747,7 +747,18 @@ When an origin color is present, the following keywords can also be used in this
747
747
Interpolation {#interpolation}
748
748
===================================
749
749
750
-
In general, interpolation between <<color>> values of the same color space occurs by linearly interpolating each component of the computed value of the color separately, in that colorspace.
750
+
Color interpolation happens with
751
+
gradients,
752
+
compositing,
753
+
filters,
754
+
transitions,
755
+
animations, and
756
+
color mixing and color modification functions.
757
+
758
+
In general, interpolation between <<color>> values of the same [=colorspace=]
759
+
occurs by linearly interpolating each component of the computed value of the color
760
+
separately, in that colorspace.
761
+
This provides Web compatibility; legacy sRGB content interpolates in the sRGB space by default.
751
762
752
763
Issue: Should gamut mapping occur before or after interpolation?
0 commit comments