Graphical animation module.
Project description
StrawberryPy
Graphical animation module.
How To Use
Basic elements
- Every animation needs an engine. You can declare a engine variable like this:
eng = strawberrypy.Engine((resX, resY), fps)
- Next, append layers to the engine:
eng.AddLayer(layer)
The layers will be rendered in order, with the first layer on the bottom. - Layers can be declared like this:
layer = strawberrypy.shapes.Layer()
- Layers contain shapes, added like this:
layer.Add(strawberrypy.shapes.(some shape))
Avaliable shapes
- Polygon: strawberrypy.Polygon(((vert1X, vert1Y), (vert2X, vert2Y)), (R, G, B))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strawberrypy-0.0.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for strawberrypy-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8d11b66343edbd66ffb6c100bdded55adf0afa5fde5c2a66ce087a50d526c6 |
|
MD5 | e72bd238ade1a4c398dce7ea75feca51 |
|
BLAKE2b-256 | e9d6759ec07ba29141f8395b8c8c1177ea9815d7e1367c2e6c813084d59f9781 |