Overview
Libavg is a high-level development platform designed for media-centric, multimedia applications. It is particularly strong in multitouch applications and performs well with both 2D and 3D graphics, providing a clean and plain developer experience with extensive support for animations, transformations, and multimedia elements.
Key features
- Support for multitouch interfaces
- Powerful animation and transformation capabilities
- Performance-optimized for graphics-intensive applications
- Integrates well with multimedia elements
- Cross-platform support
Common use cases
- Interactive kiosks and installations
- Multitouch tables and devices
- Media-rich applications and games
- 3D interactive storytelling
- Educational software with multimedia content
Installation
# Libavg installation is system dependent; # refer to the official documentation for guidance. # Usually, it can be installed on Ubuntu with the following commands: sudo apt-get install libavg-dev pip install libavg
Example
from libavg import avg
class MyApp(avg.App):
def onInit(self):
canvas = self.getMainCanvas()
self.circle = avg.CircleNode(
strokewidth=4, fillopacity=0.5,
pos=(150, 150), r=50, fillcolor="ff0", parent=canvas)
if __name__ == '__main__':
MyApp.start()