Difference between revisions of "Canvas 3D - Line Tag"
(No difference)
|
Revision as of 13:55, 2 February 2007
Quad Tag Reference
Introduction
The Line is one of the basic primitives that can be created on the fly. The Line is a 2D face that can be displayed in a 3D world. The Line Tag encompasses the various attributes that are associated with a Line, such as a start position and an end position. In addition, the Line can be textured with a predefined image from a specific location.
Tag Attributes
- name
- Usage: <quad name="myquad" />.
- The name attribute is optional. If omited, the name is not used and thus cannot be retrieved within JavaScript.
- The Quad 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: <quad position="0.3, 5.5, 3.8" />.
- The position attribute is optional. If omited, 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.
- orientation
- Usage: <quad orientation="1.0, 1.0, 1.0" />.
- The orientation attribute defines the direction in which the quad is facing. The direction is defined by a vector value.
- The orientation value only accepts three numbers that are separated by commas.
- size
- Usage: <quad size="0.4" />.
- The size attribute defines the size of the Quad on the screen.
- The size value dictates the distance each face of the quad is away from it's center point.
- texture
- Usage: <quad texture="mytexture" />
- The texture attribute contains the name identifier of a texture that is defined inside the canvas tag.
- If the texture does not exist or is not defined, a default color of white is applied to the Quad.
- The attribute must be Alpha-numeric and must point to a defined texture tag.
Syntax
<canvas> <line name="myline" start="10.0, 200.0" end="350.0, 200.0"></line> </canvas>
References
- None.