Open main menu

CDOT Wiki β

Changes

Canvas 3D - Circle Tag

1,369 bytes added, 10:58, 13 April 2007
Cube Tag Reference
= Circle Tag Reference =
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
 
== Introduction ==
 
The Circle is one of the basic 2D primitives that can be created within canvas. The Circle Tag encompasses the various attributes that are associated with a Circle, such as position, size, height, as well as drawing styles.
 
== Tag Attributes ==
 
* position
** '''Usage:''' <circle position="35, 53" />.
** The ''position'' attribute is optional. If omited, the position defaults to the Origin location at {0, 0}.
** The position attribute holds a set of two numbers separated by commas that are associated with the distance away from the Origin Point of (0, 0).
* size
** '''Usage:''' <circle size="40" />.
** The ''size'' attribute defines the diameter size of the circle.
** ''This attribute cannot be omitted.''
* fillcolor
** '''Usage:''' <circle fillcolor="#00FF00" />.
** The ''fillcolor'' attribute sets a specific color that will be painted inside the circle.
** This value, if omitted, will default to black (#000000).
* bordercolor
** '''Usage:''' <circle bordercolor="#FF00FF" />.
** The ''bordercolor'' attribute sets a specific color of the border.
** If omitted, the circle will be drawn borderless.
 
== Syntax ==
 
<pre>
<canvas>
<circle position="40, 40" size="30" fillcolor="#09a" bordercolor="#000" />
</canvas>
</pre>
 
== References ==
 
* None.
1
edit