<HTML> 
<HEAD>
<TITLE>DirectAnimation SDK, JScript sample</TITLE>
<SCRIPT LANGUAGE="JScript">
<!--
if (window.top.frames.length!=0 && window.top.frames[0].ShowNoButtons!=null)
    window.top.frames[0].ShowNoButtons();
//-->
</SCRIPT>
</HEAD>	 

<BODY BGCOLOR=WHITE TOPMARGIN=15 LEFTMARGIN=20>
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2> 
<CENTER>
<H1>Oval using the Core Interface</H1>
</CENTER>
          
<OBJECT ID="DAControl"
  STYLE="position:absolute; left:30%; top:100;width:300;height:300" 
  CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">
</OBJECT>
<!--USE COMMENT TAGS FOR SCRIPTING-->
<SCRIPT LANGUAGE="JScript">
<!--
  // The DirectAnimation library
  m = DAControl.PixelLibrary;

  /* -- Insert your code here --*/ 

  // define a red oval
  fillImg = m.SolidColorImage(m.Red);
  ovalImg = m.Oval(200,200).Fill(m.DefaultLineStyle, fillImg);

  // rotation by 45 degrees per sec around 3D first diagonal
  rotXf  = m.Rotate3RateDegrees(m.Vector3(1,1,1), 45).ParallelTransform2();   
  finalImg = ovalImg.Transform(rotXf);

  /* -- End code -- */

  // set the rotating oval, an image, as the model to be displayed
  DAControl.Image = finalImg; 
  // set the background in case of a non-windowless browser (like IE3)
  DAControl.BackgroundImage = m.SolidColorImage(m.Blue);     
     
  // start the animation       
  DAControl.Start()
//-->
</SCRIPT>
</FONT>
</BODY>
</HTML>
