Mercurial > MadButterfly
view nodejs/examples/scribbo/testsvg.js @ 1377:8ecee58c85c6
Fix issue of crashing for cloned subtree
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 13 Mar 2011 08:10:57 +0800 |
parents | 37dc1ce76bba |
children | 76d2aad5da35 |
line wrap: on
line source
// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- // vim: sw=4:ts=8:sts=4 var svg = require("svg"); var mbapp = require("mbapp"); var sys=require("sys"); var animate=require("animate"); var fs = require("fs"); function renderFrame() { cur = cur + 1; if (cur == 10) cur=1; app.changeScene(cur); setTimeout(renderFrame,30); } app = new mbapp.app(); app.loadSVG("test.svg"); cur = 1; setTimeout(renderFrame,30); app.loop();