# HG changeset patch # User wycc # Date 1299823509 -28800 # Node ID 37dc1ce76bba486380f63c557427937755a41a22 # Parent 3eaf708b52c32070a6fcc66ced770b232a1db3ea Add example files for the coord_hide issue diff -r 3eaf708b52c3 -r 37dc1ce76bba nodejs/examples/scribbo/test.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nodejs/examples/scribbo/test.svg Fri Mar 11 14:05:09 2011 +0800 @@ -0,0 +1,119 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff -r 3eaf708b52c3 -r 37dc1ce76bba nodejs/examples/scribbo/testsvg.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nodejs/examples/scribbo/testsvg.js Fri Mar 11 14:05:09 2011 +0800 @@ -0,0 +1,22 @@ +// -*- 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(); + +