diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-03 21:18:16 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-03 21:18:16 +0000 |
commit | 8f9f468b0555e95b8fc3cf4e6ee1f1fbf5492a1b (patch) | |
tree | 1d5fe46fdbe7848894373ca588597358ee427258 /experimental/Intersection/op.htm | |
parent | ee5a5eee12b3befac33ed6c379f81bf749f57161 (diff) |
shape ops work in progress
basic functionality works at this point
git-svn-id: http://skia.googlecode.com/svn/trunk@7004 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/op.htm')
-rw-r--r-- | experimental/Intersection/op.htm | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/experimental/Intersection/op.htm b/experimental/Intersection/op.htm index f2936e06f3..50c26e90c2 100644 --- a/experimental/Intersection/op.htm +++ b/experimental/Intersection/op.htm @@ -3156,11 +3156,166 @@ path.close(); path.close(); </div> +<div id="testQuadratic89x"> + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(0, 0); + path.quadTo(3, 1, 2, 2); + path.lineTo(0, 3); + path.close(); + path.moveTo(0, 0); + path.lineTo(2, 1); + path.quadTo(3, 1, 3, 3); + path.close(); +</div> + +<div id="testQuadratic90x"> + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(0, 0); + path.quadTo(3, 0, 2, 2); + path.lineTo(1, 3); + path.close(); + path.moveTo(0, 0); + path.lineTo(0, 1); + path.quadTo(3, 2, 2, 3); + path.close(); +</div> + +<div id="testQuadratic91"> + path.moveTo(0, 0); + path.quadTo(3, 2, 2, 3); + path.lineTo(2, 3); + path.close(); + path.moveTo(0, 0); + path.lineTo(1, 1); + path.quadTo(2, 1, 2, 3); + path.close(); +</div> + +<div id="testQuadratic92x"> + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(1, 0); + path.quadTo(3, 0, 2, 2); + path.lineTo(2, 2); + path.close(); + path.moveTo(2, 0); + path.lineTo(0, 1); + path.quadTo(3, 2, 2, 3); + path.close(); +</div> + +<div id="testLine82"> + path.addRect(20, 0, 40, 40, SkPath::kCCWDirection); + path.addRect(24, 20, 36, 30, SkPath::kCCWDirection); + path.addRect(24, 32, 33, 36, SkPath::kCCWDirection); +</div> + +<div id="testLine82a"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82b"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82c"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCW_Direction); + testSimplifyx(path); +</div> + + +<div id="testLine82d"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82e"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82f"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82g"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine82h"> + SkPath path; + path.addRect(0, 0, 6, 10, SkPath::kCCW_Direction); + path.addRect(2, 2, 4, 4, SkPath::kCCW_Direction); + path.addRect(2, 6, 4, 8, SkPath::kCCW_Direction); + testSimplifyx(path); +</div> + +<div id="testLine83"> +path.addRect(10, 30, 30, 40, SkPath::kCCW_Direction); +path.addRect(0, 12, 12, 18, SkPath::kCCW_Direction); +path.addRect(4, 13, 13, 16, SkPath::kCCW_Direction); +</div> + +<div id="testLine84x"> + path.setFillType(SkPath::kEvenOdd_FillType); + path.addRect(0, 12, 60, 30, SkPath::kCCW_Direction); + path.addRect(10, 20, 40, 30, SkPath::kCCW_Direction); + path.addRect(0, 12, 12, 12, SkPath::kCCW_Direction); + path.addRect(4, 12, 13, 13, SkPath::kCCW_Direction); +</div> + +<div id="testLine85"> + path.addRect(36, 0, 66, 60, SkPath::kCCW_Direction); + path.addRect(20, 0, 40, 40, SkPath::kCCW_Direction); + path.addRect(12, 0, 24, 24, SkPath::kCCW_Direction); + path.addRect(32, 0, 36, 41, SkPath::kCCW_Direction); +</div> + </div> <script type="text/javascript"> var testDivs = [ + testLine85, + testLine84x, + testLine83, + testLine82h, + testLine82g, + testLine82f, + testLine82e, + testLine82d, + testLine82c, + testLine82b, + testLine82a, + testLine82, + testQuadratic92x, + testQuadratic91, + testQuadratic90x, + testQuadratic89x, testQuadratic88, testQuadratic87, testQuadratic86, |