added somewhat broken simplex code, for posterity
[org.ibex.core.git] / tests / main.t
1 <ibex xmlns:ui="ibex://ui">
2     <ui:box minwidth="1300" minheight="1300" fill="blue" cols="1" axis="x">
3
4         // make this box a top-level window
5         ibex.ui.frame = thisbox;
6
7         // this thread makes things spin.
8         var rot = 0;
9         ibex.thread = function(f) {
10             while(true) {
11                 $lam.transform = "rotate(" + (-2 * rot) + ")";
12                 rot += 1;
13                 ibex.thread.yield();
14             }
15         }
16
17        // an example of texturing a box; this also demonstrates a
18        // box that shrinks to the size of the path drawn inside it.
19
20        <ui:box id="lam" width="300" height="300" fill="green">
21           <mux axis="z" width="100" height="25" transform="translate(50,50) rotate(90)" fill="red"/>
22           <mux axis="z" width="200" height="25" transform="translate(-20,200)"/>
23        </ui:box>
24     </ui:box>
25 </ibex>
26