[html5] r8587 - [giow] (1) Clean up some old text from the stroking algorithm Affected topics: Canvas

whatwg at whatwg.org whatwg at whatwg.org
Tue Apr 29 14:56:51 PDT 2014

Author: ianh
Date: 2014-04-29 14:56:48 -0700 (Tue, 29 Apr 2014)
New Revision: 8587

Modified:
complete.html
index
source
Log:
[giow] (1) Clean up some old text from the stroking algorithm
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2014-04-29 19:39:42 UTC (rev 8586)
+++ complete.html	2014-04-29 21:56:48 UTC (rev 8587)
@@ -56060,37 +56060,12 @@
c.stroke();
-->

+    <p>The subpaths in the newly created path must be oriented such that for any point, the number
+    of times a half-infinite straight line drawn from that point crosses a subpath is even if and
+    only if the number of times a half-infinite straight line drawn from that same point crosses a
+    subpath going in one direction is equal to the number of times it crosses a subpath going in the
+    other direction.</p>

-    <p>Subpaths in the newly created path must wind clockwise, regardless of the direction of paths
-    in <var title="">path</var>.</p>
-
-    <!-- ...because both of these examples result in two lines (assuming non-zero winding rules,
-    things are different under even/odd), there's no "hole" where the lines overlap:
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.stroke();
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.lineTo(300,300);
-            c.closePath();
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.lineTo(300,300);
-            c.closePath();
-            c.stroke();
-
-     ...and we want the same result when you create the two subpaths in each example above as two
-     Paths, stroke them onto a third Path, and then fill that Path on the context.
-    -->
-
</li>

<li><p>Return the newly created path.</li>

Modified: index
===================================================================
--- index	2014-04-29 19:39:42 UTC (rev 8586)
+++ index	2014-04-29 21:56:48 UTC (rev 8587)
@@ -56060,37 +56060,12 @@
c.stroke();
-->

+    <p>The subpaths in the newly created path must be oriented such that for any point, the number
+    of times a half-infinite straight line drawn from that point crosses a subpath is even if and
+    only if the number of times a half-infinite straight line drawn from that same point crosses a
+    subpath going in one direction is equal to the number of times it crosses a subpath going in the
+    other direction.</p>

-    <p>Subpaths in the newly created path must wind clockwise, regardless of the direction of paths
-    in <var title="">path</var>.</p>
-
-    <!-- ...because both of these examples result in two lines (assuming non-zero winding rules,
-    things are different under even/odd), there's no "hole" where the lines overlap:
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.stroke();
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.lineTo(300,300);
-            c.closePath();
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.lineTo(300,300);
-            c.closePath();
-            c.stroke();
-
-     ...and we want the same result when you create the two subpaths in each example above as two
-     Paths, stroke them onto a third Path, and then fill that Path on the context.
-    -->
-
</li>

<li><p>Return the newly created path.</li>

Modified: source
===================================================================
--- source	2014-04-29 19:39:42 UTC (rev 8586)
+++ source	2014-04-29 21:56:48 UTC (rev 8587)
@@ -62201,37 +62201,12 @@
c.stroke();
-->

+    <p>The subpaths in the newly created path must be oriented such that for any point, the number
+    of times a half-infinite straight line drawn from that point crosses a subpath is even if and
+    only if the number of times a half-infinite straight line drawn from that same point crosses a
+    subpath going in one direction is equal to the number of times it crosses a subpath going in the
+    other direction.</p>

-    <p>Subpaths in the newly created path must wind clockwise, regardless of the direction of paths
-    in <var data-x="">path</var>.</p>
-
-    <!-- ...because both of these examples result in two lines (assuming non-zero winding rules,
-    things are different under even/odd), there's no "hole" where the lines overlap:
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.stroke();
-
-            c.beginPath();
-            c.lineWidth=30;
-            c.moveTo(200,200); // subpath 1
-            c.lineTo(400,200);
-            c.lineTo(300,300);
-            c.closePath();
-            c.moveTo(400,210); // subpath 2
-            c.lineTo(200,190);
-            c.lineTo(300,300);
-            c.closePath();
-            c.stroke();
-
-     ...and we want the same result when you create the two subpaths in each example above as two
-     Paths, stroke them onto a third Path, and then fill that Path on the context.
-    -->
-
</li>

<li><p>Return the newly created path.</p></li>