2010-02-09

libavg - html-isch+python for interactive installations

Upplagd av Linus Ericsson


A very intresting library/application for rather quick scripting of interactive installations is libavg. On the webpage there are several showcases, like the timescope above.


"The basic idea is that scripting installations should be as easy as building a web page where possible and allow you full freedom of expression where not. While web pages are built using html for the layout and JavaScript to make things interactive, libavg uses an xml-based layout language and Python for the interactivity. The layout language is called avg, and where appropriate (image and div nodes, for instance), it looks a lot like html. Put in another way, libavg gives you a 2D scene graph with images, videos and text layout and allows you to easily manipulate it.As an example, here is an avg file that displays a bitmap on the screen: And this is a python snippet that gets called when the user moves the mouse over the bitmap and makes it disappear:

def disappear(): logoNode = AVGPlayer.getElementByID("logo") logoNode.opacity = 0

A full list of the things that libavg currently supports can be found on the features page.

"



0 kommentarer: