From da4b57e763c12b1d9e3b2a5b9e30b8461d74505c Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 26 Oct 2020 17:13:02 +0900 Subject: [PATCH] examples fillrule: revise code. just adjusted start points for better visual. --- src/examples/FillRule.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/examples/FillRule.cpp b/src/examples/FillRule.cpp index 57735432..dd6728e4 100644 --- a/src/examples/FillRule.cpp +++ b/src/examples/FillRule.cpp @@ -10,11 +10,11 @@ void tvgDrawCmds(tvg::Canvas* canvas) //Star auto shape1 = tvg::Shape::gen(); - shape1->moveTo(186, 34); - shape1->lineTo(307, 365); - shape1->lineTo(26, 161); - shape1->lineTo(374, 160); - shape1->lineTo(97, 365); + shape1->moveTo(205, 35); + shape1->lineTo(330, 355); + shape1->lineTo(25, 150); + shape1->lineTo(385, 150); + shape1->lineTo(80, 355); shape1->close(); shape1->fill(255, 255, 255, 255); shape1->fill(tvg::FillRule::Winding); //Fill all winding shapes @@ -23,11 +23,11 @@ void tvgDrawCmds(tvg::Canvas* canvas) //Star 2 auto shape2 = tvg::Shape::gen(); - shape2->moveTo(536, 334); - shape2->lineTo(657, 665); - shape2->lineTo(376, 461); - shape2->lineTo(724, 460); - shape2->lineTo(447, 665); + shape2->moveTo(535, 335); + shape2->lineTo(660, 655); + shape2->lineTo(355, 450); + shape2->lineTo(715, 450); + shape2->lineTo(410, 655); shape2->close(); shape2->fill(255, 255, 255, 255); shape2->fill(tvg::FillRule::EvenOdd); //Fill polygons with even odd pattern