{"id":18301363,"url":"https://github.com/lvgl/lv_lib_rlottie","last_synced_at":"2025-09-09T19:26:17.407Z","repository":{"id":54380608,"uuid":"328999622","full_name":"lvgl/lv_lib_rlottie","owner":"lvgl","description":"Lottie animation support for LVGL","archived":false,"fork":false,"pushed_at":"2024-07-15T16:22:26.000Z","size":735,"stargazers_count":39,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-06T21:51:29.317Z","etag":null,"topics":["embedded","lottie","lvgl"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-12T13:43:00.000Z","updated_at":"2025-09-02T15:30:51.000Z","dependencies_parsed_at":"2022-08-13T14:00:37.182Z","dependency_job_id":null,"html_url":"https://github.com/lvgl/lv_lib_rlottie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"lvgl/template","purl":"pkg:github/lvgl/lv_lib_rlottie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_lib_rlottie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_lib_rlottie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_lib_rlottie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_lib_rlottie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvgl","download_url":"https://codeload.github.com/lvgl/lv_lib_rlottie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_lib_rlottie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274348743,"owners_count":25268972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","lottie","lvgl"],"created_at":"2024-11-05T15:15:27.304Z","updated_at":"2025-09-09T19:26:17.365Z","avatar_url":"https://github.com/lvgl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lottie library for LVGL\n\n**This repository is merged into the lvgl repository. See https://docs.lvgl.io/master/libs/rlottie.html**\n\nAllows to use Rlottie animations in LVGL. Taken from [base repository](https://github.com/ValentiWorkLearning/lv_rlottie)\nUses [Samsung/rlottie](https://github.com/Samsung/rlottie) library with C-api header.\n\nRlottie build requires C++14-compatible compiler, optionally CMake 3.14.\n\n![lv_lib_rlottie_demo](https://github.com/lvgl/lv_lib_rlottie/raw/master/lv_rlottie.gif)\n\n## Build setup\n`lv_lib_rottile` can be built with CMake.\n\n1. Download or clone this repository with `git clone https://github.com/lvgl/lv_lib_rlottie.git --recurse-submodules` next to the `lvgl` folder. If you have downlaoded it run `git submodule update --init` for fetching the dependencies.\n2. In you `CMakeFile.txt`\n  - add:\n```cmake\nset(LOTTIE_MODULE OFF)\nset(LOTTIE_THREAD OFF)\nset(BUILD_SHARED_LIBS OFF)\n```\n  - include `lv_lib_rlottie`s CMakeFile with `include(${CMAKE_CURRENT_SOURCE_DIR}/lv_lib_rlottie/CMakeLists.txt)`\n  - link `lv_lib_rlottie` with your target. E.g. `target_link_libraries(my_target PRIVATE lv_lib_rlottie)`\n\n#### Example CMakeList\nAn example CMakeList.txt file that builds `lvgl`, `lv_demos`, `lv_driver` and `lv_lib_rlottie` with SDL can look like tihs:\n```cmake\ncmake_minimum_required(VERSION 3.10)\nproject(lvgl)\nset(CMAKE_C_STANDARD 11)#C11\nset(CMAKE_CXX_STANDARD 17)#C17\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\nINCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})\n\nfile(GLOB_RECURSE INCLUDES \"lv_drivers/*.h\" \"lv_demos/*.h\"  \"lvgl/*.h\"  \"./*.h\" )\nfile(GLOB_RECURSE SOURCES  \"lv_drivers/*.c\" \"lv_demos/*.c\"  \"lvgl/*.c\" )\n\ninclude(${CMAKE_CURRENT_SOURCE_DIR}/lv_lib_rlottie/CMakeLists.txt)\n\nSET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) \nSET(CMAKE_CXX_FLAGS \"-O3\")\n\nfind_package(SDL2 REQUIRED SDL2)\ninclude_directories(${SDL2_INCLUDE_DIRS})\nadd_executable(main main.c lv_lib_rlottie/lv_rlottie_example_fingerprint.c ${SOURCES} ${INCLUDES})\nadd_compile_definitions(LV_CONF_INCLUDE_SIMPLE)\ntarget_link_libraries(main PRIVATE SDL2 lv_lib_rlottie)\nadd_custom_target (run COMMAND ${EXECUTABLE_OUTPUT_PATH}/main)\n```\n\n## Usage\n\nYou can use animation from raw data (text) or files. In either case first include `lv_lib_rlottie/lv_rlottie.h`.\n\nThe `width` and `height` os the object be set in the *craete* function. The animation will be scaled accordingly.\n \n### Use Rlottie from raw string data\n\n`lv_rlottie_example_fingerprint.c` contains an example animation in raw string format. It can be used like this:\n\n```c\nextern const char FingerprintRaw[];\nlv_obj_t* r1 = lv_rlottie_create_from_raw(parent, width, height, FingerprintRaw);\n```\n#### JSON escaping\n\nFor using raw strings it's necessary to escape an image data. For this purpose the following escape tool can be used:\nhttps://www.freeformatter.com/json-escape.html\n\n\n### Use Rlottie from external file\n\nYou can use `card.json` at first:\n\n```c\n  lv_obj_t* r2 = lv_rlottie_create_from_file(lv_scr_act(), width, height, \"../lv_lib_rlottie/card.json\");\n```\n\n\n## Getting animations\n\nLottie is standard and popular format so you can find many animation files on the web.\nFor example: https://lottiefiles.com/ \n\nYou can also create your own animations with Adobe After Effects or similar software.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvgl%2Flv_lib_rlottie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvgl%2Flv_lib_rlottie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvgl%2Flv_lib_rlottie/lists"}