Difference between revisions of "Canvas 3D - Scale Tags"
(→Tag Attributes) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
== Introduction == | == 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 | + | The Scale Tag is a way of scaling multiple objects in a direction all at the same time. Any Tags that are written within the Scale Tag are scaled by an amount specified by its attribute. |
== Tag Attributes == | == Tag Attributes == | ||
* factor | * factor | ||
− | ** '''Usage:''' <scale factor=" | + | ** '''Usage:''' <scale factor="2,2"> ... </scale>. |
** The ''factor'' attribute contains a value that modifies the size attribute of the objects the scale tag encompasses. | ** 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 | + | ** The first value is scale horizontal and the second value scale vertical. |
+ | ** The values inside the factor attribute are additive. | ||
** This attribute is mandatory. | ** This attribute is mandatory. | ||
Line 19: | Line 20: | ||
<pre> | <pre> | ||
<canvas> | <canvas> | ||
− | <scale | + | <scale factor="3.0"> |
<cube name="mycube" size="1.0" /> | <cube name="mycube" size="1.0" /> | ||
<sphere name="mysphere" size="30.0" /> | <sphere name="mysphere" size="30.0" /> |
Latest revision as of 20:52, 22 March 2007
Scale Tag Reference
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 the Scale Tag are scaled by an amount specified by its attribute.
Tag Attributes
- factor
- Usage: <scale factor="2,2"> ... </scale>.
- The factor attribute contains a value that modifies the size attribute of the objects the scale tag encompasses.
- The first value is scale horizontal and the second value scale vertical.
- The values inside the factor attribute are additive.
- This attribute is mandatory.
Syntax
<canvas> <scale factor="3.0"> <cube name="mycube" size="1.0" /> <sphere name="mysphere" size="30.0" /> </scale> </canvas>
References
- None.