Changes

Jump to: navigation, search

Canvas 3D - Arc Tag

759 bytes added, 17:11, 10 February 2007
no edit summary
= Arc Cube Tag Reference =
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
== Introduction ==
The Arc is one of the basic 2D primitives that can be created on the flywithin canvas. The Arc Tag ArcTag encompasses the various attributes that are associated with a an Arc, such as position, size , height, starting and orientation. In additionending pointers, the Arc can be textured with a predefined image from a specific locationas well as drawing styles.
== 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.335, 5.5, 3.853" />.** The ''position'' attribute is optional. If omittedomited, the position defaults to the Origin location at {0.0, 0.0, 0.0}.** The position attribute holds a set of three floating point two numbers separated by commas that are associated with the distance away from the Origin Point on the Xof (0, Y, and Z axis0).
* size
** '''Usage:''' <arc size="0.440" />.** The ''size'' attribute defines the diameter size of the Sphere on arc.** ''This attribute cannot be omitted.''* fillcolor** '''Usage:''' <arc fillcolor="#00FF00" />.** The ''fillcolor'' attribute sets a specific color that will be painted inside the arc.** This value, if omitted, will default to black (#000000).* bordercolor** '''Usage:''' <arc bordercolor="#FF00FF" />.** The ''bordercolor'' attribute sets a specific color of the border.** If omitted, the screenarc will be drawn borderless.* startrad** '''Usage:''' <arc startrad="3.14" />.** The ''startrad'' attribute defines the angle at which the arc will start at.** This attribute uses rad rather then degrees. Further implementation will accept both.** ''This attribute cannot be omitted.''* endrad** '''Usage:''' <arc endrad="4.0" />.** The ''endrad'' attribute defines the angle at which the arc will end at.** This attribute uses rad rather then degrees. Further implementation will accept both.** ''This attribute cannot be omitted.''* clockwise** '''Usage:''' <arc clockwise="true" />.** The ''clockwise'' attribute sets the drawing direction of the arc.** This attribute accepts only true or false values.** ''This attribute cannot be omitted.'' 
== Syntax ==
<pre>
<canvas>
<arc nameposition="100, 300" size="58" fillcolor="myarc#D0D" positionbordercolor="0.0, 0.3, 0.5#0FF" orientationstartrad="03.2, 0.6, 1.314" sizeendrad="1.90" textureclockwise="mytexturetrue" />
</canvas>
</pre>
1
edit

Navigation menu