Difference between revisions of "Canvas 3D - Scale Tags"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
= Cube Tag Reference =
+
= Scale Tag Reference =
  
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
Line 5: Line 5:
 
== Introduction ==
 
== Introduction ==
  
Intro.
+
The Scale Tag is a way of scaling multiple objects in a direction all at the same time. Any Tags that are written within it at scaled by an amount specified by the Scale Tag.  
  
 
== Tag Attributes ==
 
== Tag Attributes ==
  
 
* factor
 
* factor
 +
** '''Usage:''' <scale factor="3.0"> ... </scale>.
 +
** The ''factor'' attribute contains a value that modifies the size attribute of the objects the scale tag encompasses.
 +
** The values inside the factor attribute are addative.
 +
** This attribute is mandatory.
 +
 
== Syntax ==
 
== Syntax ==
  
 
<pre>
 
<pre>
Syntax Goes Here
+
<canvas>
 
+
<scale position="3.0">
 +
  <cube name="mycube" size="1.0" />
 +
  <sphere name="mysphere" size="30.0" />
 +
</scale>
 +
</canvas>
 
</pre>
 
</pre>
  
 
== References ==
 
== References ==
  
* Site.
+
* None.

Revision as of 18:21, 20 October 2006

Scale Tag Reference

Back To XML 3D Main Page

Introduction

The Scale Tag is a way of scaling multiple objects in a direction all at the same time. Any Tags that are written within it at scaled by an amount specified by the Scale Tag.

Tag Attributes

  • factor
    • Usage: <scale factor="3.0"> ... </scale>.
    • The factor attribute contains a value that modifies the size attribute of the objects the scale tag encompasses.
    • The values inside the factor attribute are addative.
    • This attribute is mandatory.

Syntax

<canvas>
 <scale position="3.0">
  <cube name="mycube" size="1.0" />
  <sphere name="mysphere" size="30.0" />
 </scale>
</canvas>

References

  • None.