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.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for strawberrypy-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfeb7445461430958b4df1fd0460ee11372c946b3d6ce80d8df049bff36ef11c |
|
MD5 | c2ef22a2fdb26b7187e66da1faa66e7a |
|
BLAKE2b-256 | fb0bc876283a1798421a483b97d83414e948d808e01c251f9452c45a5613c1f0 |