diff --git a/src/examples/AnimateMasking.cpp b/src/examples/AnimateMasking.cpp index 48cbe709..bada7ebc 100644 --- a/src/examples/AnimateMasking.cpp +++ b/src/examples/AnimateMasking.cpp @@ -45,7 +45,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) picture1->load(EXAMPLE_DIR"/cartman.svg"); picture1->size(400, 400); auto picture2 = tvg::Picture::gen(); - picture2->load(EXAMPLE_DIR"/samsung-7.svg"); + picture2->load(EXAMPLE_DIR"/logo.svg"); picture2->size(400, 400); canvas->push(move(picture1)); @@ -104,8 +104,8 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress) while retaining other properties. */ // Translate mask object with its stroke & update - pMaskShape->translate(0 , progress * 300); - pMask->translate(0 , progress * 300); + pMaskShape->translate(0 , progress * 300 - 100); + pMask->translate(0 , progress * 300 - 100); canvas->update(); } diff --git a/test/images/tag.tvg b/test/images/tag.tvg index 5d76b960..ac023e7b 100644 Binary files a/test/images/tag.tvg and b/test/images/tag.tvg differ