| demos\blackmajic\canvas\starfield.sdf |
1 Form { 2 verticalAlign: full 3 horizontalAlign: full 4 layout: forms 5 rows: "d,4dlu,f:d:g,d,d,d" 6 columns: "d:g" 7 widgets { 8 { 9 Canvas { 10 name: "starfield" 11 bounds { 12 x: "0" 13 y: "2" 14 } 15 templateName: "canvas" 16 scriptURL: "js/starfield.js" [ shared="false" ] 17 } [ onHidden="stopStarfield()", onShown="startStarfield()" ] 18 } 19 { 20 Label { 21 horizontalAlign: center 22 bounds { 23 x: "0" 24 y: "0" 25 } 26 value:<< 27 <html> 28 Starfield is an HTML 5 canvas demo developed by Christophe Résigné<br/> 29 The browser version can be seen at <b><a href="http://www.chromeexperiments.com/detail/starfield/">http://www.chromeexperiments.com/detail/starfield/</a></b> 30 31 >> 32 supportHyperLinks: true 33 } [ onAction="window.browse(window.nativeEvent.actionCommand)" ] 34 } 35 { 36 Label { 37 columnSpan: 1 38 horizontalAlign: center 39 bounds { 40 x: "0" 41 y: "4" 42 } 43 value: "<html>You can:<ul><li>change direction by moving the cursor over the window.</li><li>change/inverse speed with mouse-scroll.</li><li>jump to warp by pressing <ENTER></li></ul></html>" 44 textVAlignment: top 45 } 46 } 47 } 48 } 49 50