Mercurial > MadButterfly
comparison nodejs/examples/scribbo/testsvg.js @ 1375:37dc1ce76bba
Add example files for the coord_hide issue
author | wycc |
---|---|
date | Fri, 11 Mar 2011 14:05:09 +0800 |
parents | |
children | 76d2aad5da35 |
comparison
equal
deleted
inserted
replaced
1374:3eaf708b52c3 | 1375:37dc1ce76bba |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
3 var svg = require("svg"); | |
4 var mbapp = require("mbapp"); | |
5 var sys=require("sys"); | |
6 var animate=require("animate"); | |
7 var fs = require("fs"); | |
8 | |
9 function renderFrame() { | |
10 cur = cur + 1; | |
11 if (cur == 10) cur=1; | |
12 app.changeScene(cur); | |
13 setTimeout(renderFrame,30); | |
14 } | |
15 | |
16 app = new mbapp.app(); | |
17 app.loadSVG("test.svg"); | |
18 cur = 1; | |
19 setTimeout(renderFrame,30); | |
20 app.loop(); | |
21 | |
22 |