kivy-garden / animationbuilder Goto Github PK
View Code? Open in Web Editor NEWEasy way of writing Kivy Animations
License: MIT License
Easy way of writing Kivy Animations
License: MIT License
This is not an actual issue, but more like suggestion. Sorry I don't know where should I write this.
For example:
test:
freestyle: "(anim1 + anim2) & (sleep(2) + anim3)"
is equivalent to
test:
P:
- S: [anim1, anim2]
- S: [{d: 2}, anim3]
which is equivalent to
test:
P:
- S:
- anim1
- anim2
- S:
- d: 2
- anim3
I don't know which one is better.
BinOp(), Add(), BitAnd(), Expr(), Name(), Call(), Call_sleep(), compile_node()
These methods are only used by "freestyle expression"
I think this flower is useless because asyncio
and trio
can handle animations more flexibly compared to Sequence
and Parallel
, which are what the flower depends on.
So if you agree with me, I want you to delete or archive the repository.
EDIT:
I just realized that I can archive it. So if no one against me, I'm going to do that.
I recently switched the base flower and some actual flowers to use github actions. I'm opening an issue here to suggest this flower also update if you can.
You can see the changes I made here: https://github.com/kivy-garden/graph/commits/master.
With these changes, the action will:
The following changes were also made in this PR and previously:
find_namespace_packages
. extras_require
was updated._version.py
file because otherwise there are import issues if kivy is not already pre-installed (kivy-garden/flower#1).sphinx_rtd_theme
theme in conf.py.tests
directory under kivy_garden/flower
so it is installed when the flower is installed.Mainly because
locals
and globals
is annoyingInstead of writing like this:
anims = AnimationBuilder.load_string('...')
anims.globals['some_attr'] = 'some_value'
anims.locals['some_attr2'] = 'some_value2'
wanna write like this:
anims = AnimationBuilder.load_string('...')
anims['some_attr'] = 'some_value'
anims['some_attr2'] = 'some_value2'
I probabely should hide locals
and globals
from users.
repeat
attribute, I feel it's weirdshake_anim:
repeat: True
sequence:
- right: 30
d: .5
- left: 30
d: .5
Since repeat
is a attribute of kivy.animation.Sequence
I wanna write like this:
shake_anim:
sequence:
repeat: True
- right: 30
d: .5
- left: 30
d: .5
But this produce syntax error.
Instead of writing like this:
change_color:
color: "eval: get_random_color()"
d: "eval: random() + additional_time"
wanna write like this:
change_color:
color: "get_random_color()"
d: "random() + additional_time"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.