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

from libavg import *

def startAnim():
    animObj.start()

canvas = player.createMainCanvas(size=(640,480))
rootNode = canvas.getRootNode()
node = avg.WordsNode(pos=(10,10), text="Hello World", parent=rootNode)

animObj = LinearAnim(node, "x", 2000, 0, 200)
player.setTimeout(0, startAnim)

player.play()