1
edit
Changes
no edit summary
== 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 ==
* start
** '''Usage:''' <line start="20.0, 200.0" />.
** The ''start'' attribute determines the start position of a line
** The ''start'' attribute is optional. If omited, the start position defaults to the Origin location at {0.0, 0.0}.** The ''start'' attribute holds a set of two floating point numbers separated by commas that are associated with the distance away from the Origin Point on the X and Y axis.
* end
** '''Usage:''' <line end="50.0, 200.0" />.** The ''end'' attribute determines the end position of a line. A line is then drawn from its start position to its end position.** The ''endThis attribute cannot be omitted.'' attribute holds a set of two floating point numbers separated by commas that are associated with the distance away from the Origin Point on the X and Y axis.
== Syntax ==
<pre>
<canvas>
<line name="myline" start="10, 20" end="35, 20" />
</canvas>
</pre>