1{ 2 "My Scene" : { 3 "id" : "main-stage", 4 "type" : "ClutterStage", 5 "title" : { "translatable" : true, "string" : "ClutterScript test" }, 6 "color" : "white", 7 "signals" : [ 8 { "name" : "key-press-event", "handler" : "clutter_test_quit" }, 9 { "name" : "destroy", "handler" : "clutter_test_quit" } 10 ], 11 "children" : [ 12 { 13 "id" : "red-button", 14 "type" : "ClutterActor", 15 "background-color" : "#ff0000ff", 16 "x" : 50, "y" : 50, "width" : 100, "height" : 100, 17 "reactive" : true, 18 "rotation" : [ 19 { "z-axis" : [ 45.0, [ 75, 75 ] ] } 20 ] 21 }, 22 { 23 "id" : "green-button", 24 "type" : "ClutterActor", 25 "background-color" : "#00ff00ff", 26 "border-width" : 5, 27 "border-color" : "#00cc00ff", 28 "position" : [ 200.0, 50.0 ], 29 "size" : { "width" : 100.0, "height" : 100.0 }, 30 "depth" : -200.0, 31 "reactive" : true, 32 "signals" : [ 33 { "name" : "button-press-event", "handler" : "clutter_test_quit" } 34 ] 35 }, 36 { 37 "id" : "label", 38 "type" : "ClutterText", 39 "x" : 50, 40 "y" : 200, 41 "text" : { "translatable" : true, "string" : "Clutter Script" }, 42 "font-name" : "Sans 24px", 43 "color" : "black", 44 "line-alignment" : "center", 45 "line-wrap" : false, 46 "ellipsize" : "none", 47 "rotation" : [ 48 { "y-axis" : [ 60.0, [ 275, 100 ] ] }, 49 { "z-axis" : [ 45.0, [ 75, 75 ] ] } 50 ] 51 } 52 ] 53 } 54} 55