X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=tests%2Fmain.t;fp=tests%2Fmain.t;h=c34797cc2302d68a8c84e3fc0214d6db5b4c99a8;hp=0000000000000000000000000000000000000000;hb=2c4578ad79d2717dd749b51d682b6f8bff5a4c54;hpb=955ccd260ab1acc239ee60cef1ccd48115cc8597 diff --git a/tests/main.t b/tests/main.t new file mode 100644 index 0000000..c34797c --- /dev/null +++ b/tests/main.t @@ -0,0 +1,26 @@ + + + + // 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. + + + + + + + +