54 float x,
float y,
float w,
float h);
58 std::unique_ptr<Impl> impl_;
Definition canvas.hpp:240
double duration_seconds() const noexcept
0 when invalid.
double frame_rate() const noexcept
0 when invalid.
float intrinsic_height() const noexcept
Authored composition height.
float intrinsic_width() const noexcept
Authored composition width.
bool valid() const noexcept
bool load_file(const std::string &path)
Load a Lottie animation from a .json file path.
LottieAnimation(LottieAnimation &&) noexcept
bool load_json(const std::string &json)
Load a Lottie animation from a JSON string.
void render(Canvas &canvas, double t_seconds, float x, float y, float w, float h)
Render the frame at t_seconds (clamped to [0, duration]) into the rectangle (x, y,...
static bool supported() noexcept
True when Lottie support is compiled in (PULP_HAS_LOTTIE).
Definition affine_transform.hpp:24
@ path
Definition scene_node.hpp:93