Changes

Jump to: navigation, search

Canvas 3D - Arc Tag

134 bytes added, 10:55, 13 April 2007
Cube Tag Reference
== Introduction ==
The Arc is one of the basic 2D primitives that can be created on the flywithin canvas. The Arc Tag 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:''' <sphere name="mysphere" />.
** The ''name'' attribute is optional. If omited, 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 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 two numbers separated by commas that are associated with the distance away from the Origin Point on the X, Y, and Z axis.* orientation** '''Usage:''' <arc orientation="1.of (0, 1.0, 1.0" />.** The ''orientation'' attribute defines the direction in which the Arc is facing. The direction is defined by a vector value.** The orientation value only accepts three numbers that are separated by commas).
* size
** '''Usage:''' <arc size="0.440" />.** The ''size'' attribute defines the diameter size of the Sphere on the screenarc.** ''This attribute cannot be omitted.''* texturefillcolor** '''Usage:''' <arc texturefillcolor="mytexture#00FF00" />.** The ''texturefillcolor'' attribute contains the name identifier of sets a texture specific color that is defined will be painted inside the canvas tagarc.** If the texture does not exist or is not definedThis value, if omitted, will default to black (#000000).* bordercolor** '''Usage:''' <arc bordercolor="#FF00FF" />.** The ''bordercolor'' attribute sets a default specific color of white is applied to the Arcborder.** If omitted, the arc 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 must sets the drawing direction of the arc.** This attribute accepts only true or false values.** ''This attribute cannot be Alpha-numeric and must point to a defined texture tagomitted.''
== 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