summaryrefslogtreecommitdiff
path: root/src/samples/plugin.py
blob: 6aa7100bb95076d4801cfda378c5ee4e5e9e0ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from libavg import player

canvas = player.createMainCanvas(size=(160,120))
# Change following line if the plugin is somewhere else.
player.pluginPath = "../test/plugin/.libs"
player.loadPlugin("colorplugin")

rootNode = canvas.getRootNode()
node = colorplugin.ColorNode(fillcolor="7f7f00", parent=rootNode)
node.fillcolor = "7f007f"
player.play()