Aurora RT Page Objects (continued) 

Page:  IntroductionInstallationPage Objects I,  Page Objects II,  Flow Control

Details of additional page objects, supported by Aurora RT, can be found below. Note, all size and position information is in pixels. ARGB colour values range from 0 to 255.

Circle

<object id="4">
 <type>circle</type>
 <log>MSG: circle clicked #4</log>
 <diameter>40</diameter>
 <position>
  <x>80</x>
  <y>80</y>
 </position>
 <colour>
  <alpha>255</alpha>
  <red>255</red>
  <green>0</green>
  <blue>0</blue>
 </colour>
</object>

The circle specified above is centred on the position (80, 80), measured relative to the top left corner of the screen. The circle outline and fill colour will be red, since 255 was specified for both alpha and red values.

Rectangle

<object id="5">
 <type>rectangle</type>
 <log>MSG: rectangle clicked #5</log>
 <vertices>
  <x1>100</x1>
  <y1>100</y1>
  <x2>180</x2>
  <y2>100</y2>
  <x3>180</x3>
  <y3>120</y3>
  <x4>100</x4>
  <y4>120</y4>
 </vertices>
 <colour>
  <alpha>255</alpha>
  <red>0</red>
  <green>0</green>
  <blue>0</blue>
 </colour>
</object>

The rectangle is very much like the triangle in that lines are drawn from (x1, y1) through to (x4, y4). Again, Aurora RT does not check that the lines drawn actually constitute a rectangle.

Blank Region

<object id="6">
 <type>blankregion</type>
 <log>MSG: blank region clicked</log>
 <width>1280</width>
 <height>1024</height>
 <position>
  <x>0</x>
  <y>0</y>
 </position>
 <colour>
  <alpha>255</alpha>
  <red>255</red>
  <green>255</green>
  <blue>255</blue>
 </colour>
</object>

A blank region object is used simply to fill a rectangular area of the screen with a specific colour. The example above paints the entire screen white - this object is required if no other graphics object is to be displayed on a particular presentation page. This requirement may be removed in the future.

Noise Grid

<object id="7">
 <type>noisegrid</type>
 <log>MSG: Noise grid clicked.</log>
 <cellsize>6</cellsize>
 <gridrows>80</gridrows>
 <gridcols>80</gridcols>
 <rate>440</rate>
 <colour>
  <active>
   <alpha>255</alpha>
   <red>255</red>
   <green>255</green>
   <blue>255</blue>
  </active>
  <inactive>
   <alpha>255</alpha>
   <red>0</red>
   <green>0</green>
   <blue>0</blue>
  </inactive>
 </colour>
</object>

The noise grid object was designed to simulate visual noise, similar to that produced on an un-tuned television. The example above displays an 80 by 80 grid of black and white squares which are animated at a rate of 440 dots per second.

The animation rate ranges from 0 to 10000; an animation rate of 0 results in the display of a static grid. The upper animation rate is really dependent on the processing capabilities of the host PC, but any modern PC should be able to run the grid at this rate with ease.