Difference between revisions of "Canvas 3D - Line Tag"
(→Syntax) |
|||
Line 5: | Line 5: | ||
== Introduction == | == Introduction == | ||
− | The Line is one of the basic primitives that can be created on the fly | + | The Line is one of the basic primitives that can be created on the fly. The Line Tag encompasses the various attributes that are associated with a Line, such as a start position and an end position. |
== Tag Attributes == | == Tag Attributes == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
* start | * start | ||
− | ** '''Usage:''' <line start="20 | + | ** '''Usage:''' <line start="20, 200" />. |
** The ''start'' attribute determines the start position of a line | ** The ''start'' attribute determines the start position of a line | ||
− | ** | + | ** If omited, the start position defaults to the Origin location at {0, 0}. |
− | |||
* end | * end | ||
− | ** '''Usage:''' <line end="50 | + | ** '''Usage:''' <line end="50, 200" />. |
− | ** The ''end'' attribute determines the end position of a line | + | ** The ''end'' attribute determines the end position of a line. A line is then drawn from its start position to its end position. |
− | ** | + | ** ''This attribute cannot be omitted.'' |
== Syntax == | == Syntax == | ||
Line 28: | Line 22: | ||
<pre> | <pre> | ||
<canvas> | <canvas> | ||
− | <line | + | <line start="10, 20" end="35, 20" /> |
</canvas> | </canvas> | ||
</pre> | </pre> |
Revision as of 16:16, 10 February 2007
Line Tag Reference
Introduction
The Line is one of the basic primitives that can be created on the fly. The Line Tag encompasses the various attributes that are associated with a Line, such as a start position and an end position.
Tag Attributes
- start
- Usage: <line start="20, 200" />.
- The start attribute determines the start position of a line
- If omited, the start position defaults to the Origin location at {0, 0}.
- end
- Usage: <line end="50, 200" />.
- The end attribute determines the end position of a line. A line is then drawn from its start position to its end position.
- This attribute cannot be omitted.
Syntax
<canvas> <line start="10, 20" end="35, 20" /> </canvas>
References
- None.