<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/",
parseOnLoad : true
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script>
dojo.require("dojox.gfx");
function testIt() {
var s = dojox.gfx.createSurface("my", 320, 240);
var t = s.createPolyline([ {x:160,y:15}, {x:110,y:65},{x:210,y:65}, {x:160,y:15} ]).setFill([0, 255, 0, 1]);
window.setInterval(function() {
t.applyTransform(dojox.gfx.matrix.rotategAt(5, 155, 50));
}, 100);
}
</script>
</head>
<body onLoad="testIt();">
<div id="my"></div>
</body>
</html>
|