| 165 | } |
| 166 | |
| 167 | void Demo7(EvasApp *app, std::string &filePath) { |
| 168 | /* Transform rotation */ |
| 169 | view7.reset(new LottieView(app->evas())); |
| 170 | view7->setFilePath(filePath.c_str()); |
| 171 | if (view7->player()) { |
| 172 | view7->player()->setValue<rlottie::Property::TrRotation>("Shape Layer 2.Shape 1", |
| 173 | [](const rlottie::FrameInfo& info) { |
| 174 | return info.curFrame() * 20; |
| 175 | }); |
| 176 | } |
| 177 | view7->setPos(1800, 0); |
| 178 | view7->setSize(300, 300); |
| 179 | view7->show(); |
| 180 | view7->play(); |
| 181 | view7->loop(true); |
| 182 | view7->setRepeatMode(LottieView::RepeatMode::Reverse); |
| 183 | } |
| 184 | void Demo8(EvasApp *app, std::string &filePath) { |
| 185 | /* Transform + color */ |
| 186 | view8.reset(new LottieView(app->evas())); |