Graphical animation module.
Project description
StrawberryPy
Graphical animation module.
How To Use
Basic elements
- Every animation needs an scene. You can declare a scene variable like this:
scene = strawberrypy.Scene2D((resX, resY), fps)
- Next, append layers to the engine:
scene.AddLayer(layer)
The layers will be rendered in order, with the first layer on the bottom. - Layers can be declared like this:
layer = strawberrypy.Layer()
- Layers contain shapes, added like this:
layer.Add(strawberrypy.shapes.(some shape))
Avaliable shapes
- Polygon:
strawberrypy.shapes.Polygon(((vert1X, vert1Y), (vert2X, vert2Y)), (R, G, B), borderWidth)
- Circle:
strawberrypy.shapes.Circle((centerX, centerY), radius, (R, G, B), borderWidth)
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.5.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for strawberrypy-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5525543511c4926a4e8a46b489025f98fb2b7925055664ddda2ac53346d7afe |
|
MD5 | 5c949813348ad9cbb5a4094b563d5287 |
|
BLAKE2b-256 | ce547478ac50db7d4d1e1256d3bf6d3e8a2d8d8d5c7370ede36c48456d179acd |