Difference between revisions of "Canvas 3D - Arc Tag"
(→Tag Attributes) |
|||
Line 10: | Line 10: | ||
* name | * name | ||
− | ** '''Usage:''' < | + | ** '''Usage:''' <arc name="myarc" />. |
− | ** The ''name'' attribute is optional. If | + | ** The ''name'' attribute is optional. If omitted, the name is not used and thus cannot be retrieved within JavaScript. |
** The Arc is given an Identifier so that It can be retrieved and modified within JavaScript. | ** The Arc is given an Identifier so that It can be retrieved and modified within JavaScript. | ||
** The name is a only accepts a string of Alpha-numeric characters. | ** The name is a only accepts a string of Alpha-numeric characters. | ||
* position | * position | ||
** '''Usage:''' <arc position="0.3, 5.5, 3.8" />. | ** '''Usage:''' <arc position="0.3, 5.5, 3.8" />. | ||
− | ** The ''position'' attribute is optional. If | + | ** The ''position'' attribute is optional. If omitted, the position defaults to the Origin location at {0.0, 0.0, 0.0}. |
** The position attribute holds a set of three floating point numbers separated by commas that are associated with the distance away from the Origin Point on the X, Y, and Z axis. | ** The position attribute holds a set of three floating point numbers separated by commas that are associated with the distance away from the Origin Point on the X, Y, and Z axis. | ||
− | |||
− | |||
− | |||
− | |||
* size | * size | ||
** '''Usage:''' <arc size="0.4" />. | ** '''Usage:''' <arc size="0.4" />. | ||
** The ''size'' attribute defines the size of the Sphere on the screen. | ** The ''size'' attribute defines the size of the Sphere on the screen. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Syntax == | == Syntax == |
Revision as of 15:12, 2 February 2007
Arc Tag Reference
Introduction
The Arc is one of the basic primitives that can be created on the fly. The Arc Tag encompasses the various attributes that are associated with a Arc, such as position, size and orientation. In addition, the Arc can be textured with a predefined image from a specific location.
Tag Attributes
- name
- Usage: <arc name="myarc" />.
- The name attribute is optional. If omitted, the name is not used and thus cannot be retrieved within JavaScript.
- The Arc is given an Identifier so that It can be retrieved and modified within JavaScript.
- The name is a only accepts a string of Alpha-numeric characters.
- position
- Usage: <arc position="0.3, 5.5, 3.8" />.
- The position attribute is optional. If omitted, the position defaults to the Origin location at {0.0, 0.0, 0.0}.
- The position attribute holds a set of three floating point numbers separated by commas that are associated with the distance away from the Origin Point on the X, Y, and Z axis.
- size
- Usage: <arc size="0.4" />.
- The size attribute defines the size of the Sphere on the screen.
Syntax
<canvas> <arc name="myarc" position="0.0, 0.3, 0.5" orientation="0.2, 0.6, 1.3" size="1.9" texture="mytexture" /> </canvas>
References
- None.