examples - updated a resource usage

This commit is contained in:
Hermet Park 2022-03-08 18:38:59 +09:00
parent 6276175d5b
commit 49c6336b33
2 changed files with 3 additions and 3 deletions

View file

@ -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();
}

Binary file not shown.