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
Once a gradient has been created (see below), stops are placed along it to define how the colors are distributed along the gradient. The color of the gradient at each stop is the color specified for that stop. Between each such stop, the colors and the alpha component must be linearly interpolated over the RGBA space without premultiplying the alpha value to find the color to use at that offset. Before the first stop, the color must be the color of the first stop. After the last stop, the color must be the color of the last stop. When there are no stops, the gradient is transparent black.
8991
+
Once a gradient has been created (see below), stops are placed along it to define how the colors are distributed along the gradient. The color of the gradient at each stop is the color specified for that stop, converted to the context's color space. Between each such stop, the colors and the alpha component must be linearly interpolated in the context's color space without premultiplying the alpha value to find the color to use at that offset. Before the first stop, the color must be the color of the first stop. After the last stop, the color must be the color of the last stop. When there are no stops, the gradient is transparent black.
Render the shape or image onto an infinite transparent black bitmap, creating image A, as described in the previous sections. For shapes, the current fill, stroke, and line styles must be honored, and the stroke must itself also be subjected to the current transformation matrix.
There do not exist any inputs to a 2D context for which the color space is undefined. The color space for CSS colors is defined in CSS Color. The color space for images that specify no color profile information is 'srgb', as specified in the Color Spaces of Untagged Colors section of CSS Color. [CSSCOLOR]
12577
+
</p>
12578
+
</li>
12579
+
<li>
12595
12580
%A 内の各~画素に対し,その~alpha成分を`大域~alpha$2Dで乗算する
12596
12581
◎
12597
12582
Multiply the alpha component of every pixel in A by global alpha.
The canvas APIs provide mechanisms for specifying the color space of the canvas's backing store. The default backing store color space for all canvas APIs is 'srgb'.
14193
+
The PredefinedColorSpace enumeration is used to specify the color space of the canvas's backing store.
14208
14194
</p>
14195
+
<dlclass="def-list">
14196
+
<dt>`srgb@l</dt>
14197
+
<dd>
14198
+
`srgb$v 色~空間を指示する。
14199
+
◎
14200
+
The "srgb" value indicates the 'srgb' color space.
Color space conversion must be applied to the canvas's backing store when rendering the canvas to the output device. This color space conversion must be identical to the color space conversion that would be applied to an img element with a color profile that specifies the same color space as the canvas's backing store.
14221
-
</p>
14207
+
The "display-p3" value indicates the 'display-p3' color space.
When drawing content to a 2D context, all inputs must be converted to the context's color space before drawing. Interpolation of gradient color stops must be performed on color values after conversion to the context's color space. Alpha blending must be performed on values after conversion to the context's color space.
14215
+
Color space conversion must be applied to the canvas's backing store when rendering the canvas to the output device.
There do not exist any inputs to a 2D context for which the color space is undefined. The color space for CSS colors is defined in CSS Color. The color space for images that specify no color profile information is assumed to be 'srgb', as specified in the Color Spaces of Untagged Colors section of CSS Color. [CSSCOLOR]
14227
+
The algorithm for converting between color spaces can be found in the Converting Colors section of CSS Color. This color space conversion is identical to the color space conversion that would be applied to an img element with a color profile that specifies the same color space as the canvas's backing store. [CSSCOLOR]
0 commit comments