[html5] r1768 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 13 01:22:58 PDT 2008


Author: ianh
Date: 2008-06-13 01:22:57 -0700 (Fri, 13 Jun 2008)
New Revision: 1768

Modified:
   index
   source
Log:
[e] (0) Remove redundancy in gradient extrapolation.

Modified: index
===================================================================
--- index	2008-06-13 08:12:01 UTC (rev 1767)
+++ index	2008-06-13 08:22:57 UTC (rev 1768)
@@ -18815,15 +18815,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
@@ -18856,13 +18856,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.
 
@@ -18923,13 +18922,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

Modified: source
===================================================================
--- source	2008-06-13 08:12:01 UTC (rev 1767)
+++ source	2008-06-13 08:22:57 UTC (rev 1768)
@@ -16410,16 +16410,16 @@
   gradients, both represented by objects implementing the opaque
   <code>CanvasGradient</code> interface.</p>
 
-  <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>
+  <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>
 
   <p>The <dfn
   title="dom-canvasgradient-addColorStop"><code>addColorStop(<var
@@ -16453,15 +16453,14 @@
   return a linear <code>CanvasGradient</code> initialized with the
   specified line.</p>
 
-  <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 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 <span title="dom-context-2d-transformation">current
-  transformation matrix</span> when rendering.</p>
+  <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 <a href="#interpolation">interpolation and
+  extrapolation</a> described above). The points in the linear
+  gradient must be transformed as described by the <span
+  title="dom-context-2d-transformation">current transformation
+  matrix</span> when rendering.</p>
 
   <p>If <span><var title="">x<sub>0</sub></var> = <var
   title="">x<sub>1</sub></var></span> and <span><var
@@ -16521,13 +16520,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>
 




More information about the Commit-Watchers mailing list