AWTK supports Rive animation

tags: ZLG Open Source GUI AWTK  AWTK  Rive

awtk-widget-rive

Rive It is a super powerful animation format and a supporting tool.rive player The control is based onrive-cpp RealizeRive player.

Prepare

  1. Get AWTK and compile
git clone https://github.com/zlgopen/awtk.git
cd awtk; scons; cd -
  1. Get the AWTK-Widget-Rive and compile
git clone https://github.com/zlgopen/awtk-widget-rive
cd awtk-widget-rive
git clone https://github.com/rive-app/rive-cpp src/rive-cpp
scons

run

    1. Generate the resource of sample code
python scripts/update_res.py all

You can also use Designer to open the project, then click the "Package" button to generate;
If the resource is modified, you will need to regenerate resources.

If the PIL is not installed, performing the above script may have the following error:

Traceback (most recent call last):
...
ModuleNotFoundError: No module named 'PIL'

Please install PIP:

pip install Pillow
  1. Compile
  • Compile PC version
scons
  • Compile Linux FB version
scons LINUX_FB=true

Full compilation option, please refer toCompile option

  1. run
./bin/demo

Documentation

  • Method created in XML
  <rive x="c" y="m" w="600" h="400" name="rive" url="heart.riv"/>

Question

  • Please use Cairo's Backen for VGCANVAS to get a full-featured demo, other backend may have potential problems due to non-CLIP PATH and multiple STOP gradients.

Modify AWTK / AWTK_CONFIG.PY and recompile:

VGCANVAS='CAIRO'

Intelligent Recommendation

Arcgis JS 4 perfectly supports MAPV, animation also supports (1)

I have also seen someone who has combined Mapv and Arcgis, but it is still not perfect. For some effects, such as animation is not supported. First of all, we are not doing plug -in but transforming M...

react-native 0.62 supports gif animation

I read some blogs that support GIFs for android. The problem is that the required version does not correspond. After trying many times, I found the configuration corresponding to version 0.62. The sol...

Whole screen animation wow.min.js supports css3 multiple animation effects!

WOW.js needs animate.css to cooperate, so it supports more than 60 kinds of animation effects of animate.css, which can meet your various needs. wow.min.js can realize the animation state under scroll...

AWTK Windows Environment Configuration under AWTK WINDOWS

AWTK Windows Environment Configuration under AWTK WINDOWS Install Python (64-bit system to install 64-bit version of Python) Download Python's corresponding version in Python's official website: Pytho...

Integrate AWTK into iotjs

Integrate AWTK into iotjs iotjs It is Samsung's open source javascript IoT development platform. It provides access to hardware, networking, file systems, and asynchronous for javascript applications....

More Recommendation

AWTK: trial interface editor

Graphics editorIt is not included in the git repository, but there is it in the readme and the official website: 1. Register After registering a user, you will get 3 licenses that can be used for thre...

A free and cool GUI: AWTK

attention,Star publicnumber, Don’t miss great content Source: Embedded Hodgepodge + ZLG Ligong Technology Not long ago, I shared an article about GUI "", continue to share an open sour...

AWTK: First try

Introduction to AWTK Try again and again windows ubuntu linux Linux operation and summary Introduction to AWTK AWTK (Toolkit Anywhere) is a set of GUI framework based on C language developed by ZLG. I...

AWTK flash space optimization

Optimize space for 512K Flash background By default, the space occupied by demo1 on STMF103 is as follows. For a platform that only uses 512K Flash, there is less space left for the application. Here ...

AWTK javascript binding principle

AWTK javascript binding principle 1. Basic structure The binding method of Javascript is somewhat different from that of Lua. The main reason is that there are many javascript engines, such as jerrysc...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top