English
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com--> <!--Add the following code to the <body> area--> <OBJECT ID=SG1 STYLE="Position:absolute; WIDTH:425; HEIGHT:425; top:10; left;10;Z-INDEX: -1" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" > </OBJECT> <SCRIPT LANGUAGE="javaScript"> var ds lib = SG1.Library // Enable the DirectAnimation library ds = SG1.DrawSurface // Enable the artboard ds.fillcolor(lib.blue) // Set the artboard color ds.rect (-50,-50,200,200) // Draw a rectangle ds.fillcolor(lib.ColorRgb255(200,200,255)) // Set the color of the circular surface ds.oval(-60,-60, 120, 120) // Draw a circular surface ds. SaveGraphicsState() ds.transform(lib.rotate2rate(5)) // Call the rotation of two-dimensional space ds.fillcolor(lib.ColorRgb255(255,0,0)) ds.rect(-20, -100, 40,200) / / Draw another rectangle, which will be rotated in two-dimensional space ds.RestoreGraphicsState() // Close the call to two-dimensional space rotation SG1.DrawSurface = ds // Return the drawn shape // Display on the screen RotateMe() function RotateMe() { SG1.rotate(2,0,2) DoTheWork=window.setTimeout("RotateMe()",50) //Let the picture drawn above rotate around the x-axis} </SCRIPT>