+<ibex xmlns:ui="ibex://ui">
+ <ui:box minwidth="1300" minheight="1300" fill="blue" cols="1" axis="x">
+
+ // make this box a top-level window
+ ibex.ui.frame = thisbox;
+
+ // this thread makes things spin.
+ var rot = 0;
+ ibex.thread = function(f) {
+ while(true) {
+ $lam.transform = "rotate(" + (-2 * rot) + ")";
+ rot += 1;
+ ibex.thread.yield();
+ }
+ }
+
+ // an example of texturing a box; this also demonstrates a
+ // box that shrinks to the size of the path drawn inside it.
+
+ <ui:box id="lam" width="300" height="300" fill="green">
+ <mux axis="z" width="100" height="25" transform="translate(50,50) rotate(90)" fill="red"/>
+ <mux axis="z" width="200" height="25" transform="translate(-20,200)"/>
+ </ui:box>
+ </ui:box>
+</ibex>
+