- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 13 Jun 2008 08:23:04 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv18405 Modified Files: Overview.html Log Message: Remove redundancy in gradient extrapolation. (whatwg r1768) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.957 retrieving revision 1.958 diff -u -d -r1.957 -r1.958 --- Overview.html 13 Jun 2008 08:12:06 -0000 1.957 +++ Overview.html 13 Jun 2008 08:23:01 -0000 1.958 @@ -18919,15 +18919,15 @@ both represented by objects implementing the opaque <code><a href="#canvasgradient">CanvasGradient</a></code> interface. - <p>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. + <p id=interpolation>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. <p>The <dfn id=addcolorstop title=dom-canvasgradient-addColorStop><code>addColorStop(<var @@ -18960,13 +18960,12 @@ href="#canvasgradient">CanvasGradient</a></code> initialized with the specified line. - <p>Linear gradients must be rendered such that at and before the starting - point on the canvas the color at offset 0 is used, that at and after the - ending point the color at offset 1 is used, and that all points on a line + <p>Linear gradients must be rendered such that all points on a line perpendicular to the line that crosses the start and end points have the color at the point where those two lines cross (with the colors coming - from the interpolation described above). The points in the linear gradient - must be transformed as described by the <a href="#transformations0" + from the <a href="#interpolation">interpolation and extrapolation</a> + described above). The points in the linear gradient must be transformed as + described by the <a href="#transformations0" title=dom-context-2d-transformation>current transformation matrix</a> when rendering. @@ -19027,13 +19026,10 @@ title="">ω</var> + <var title="">r<sub>0</sub></var></span></p> - <p>Let the color at <var title="">ω</var> be the color of the - gradient at offset 0.0 for all values of <var title="">ω</var> - less than 0.0, the color at offset 1.0 for all values of <var - title="">ω</var> greater than 1.0, and the color at the given - offset for values of <var title="">ω</var> in the range - <span>0.0 ≤ <var - title="">ω</var> ≤ 1.0</span> + <p>Let the color at <var title="">ω</var> be the color at that + position on the gradient (with the colors coming from the <a + href="#interpolation">interpolation and extrapolation</a> described + above).</p> <li> <p>For all values of <var title="">ω</var> where <span>r(<var
Received on Friday, 13 June 2008 08:23:38 UTC