Languages

clutter

[Genie] Clutter simple sample

5
Your rating: None Average: 5 (1 vote)
[indent=4]
 
/* Requires Vala >= 0.7.9
valac --pkg clutter-1.0 yourfile.gs */
 
uses
    Clutter
 
class ClutterDemo
 
    animations : array of Animation
    stage : Stage
    rectangles : array of Rectangle
    const colors : array of string = { "blanched almond", "OldLace", "MistyRose", "White", "LavenderBlush", "CornflowerBlue", "chartreuse", "chocolate", "light coral", "medium violet red", "LemonChiffon2", "RosyBrown3" }
 
    construct ()
        stage = Stage.get_default ()
        rectangles = new array of Rectangle[colors.length]
        stage.hide.connect (Clutter.main_q
Syndicate content