mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
test: update samples
fix some broken test code. Change-Id: I42b0dd8b4c599ea59e0860a40b828936dca1e54d
This commit is contained in:
parent
2f833298c3
commit
1f6da2d0b6
2 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ void tvgtest()
|
||||||
|
|
||||||
shape->appendRect(-100, -100, 200, 200, 0);
|
shape->appendRect(-100, -100, 200, 200, 0);
|
||||||
|
|
||||||
//fill and rotate properties will be retained
|
//fill property will be retained
|
||||||
shape->fill(127, 255, 255, 255);
|
shape->fill(127, 255, 255, 255);
|
||||||
shape->rotate(45);
|
|
||||||
canvas->push(move(shape));
|
canvas->push(move(shape));
|
||||||
|
|
||||||
//Draw first frame
|
//Draw first frame
|
||||||
|
|
|
@ -75,7 +75,7 @@ void transit_cb(Elm_Transit_Effect *effect, Elm_Transit* transit, double progres
|
||||||
pShape2->translate(400 + progress * 300, 400);
|
pShape2->translate(400 + progress * 300, 400);
|
||||||
canvas->update(pShape2);
|
canvas->update(pShape2);
|
||||||
|
|
||||||
//Update Shape2
|
//Update Shape3
|
||||||
pShape3->rotate(-360 * progress);
|
pShape3->rotate(-360 * progress);
|
||||||
pShape3->scale(0.5 + progress);
|
pShape3->scale(0.5 + progress);
|
||||||
canvas->update(pShape3);
|
canvas->update(pShape3);
|
||||||
|
|
Loading…
Add table
Reference in a new issue