Difference between revisions of "Canvas 3D - Circle Tag"

From CDOT Wiki
Jump to: navigation, search
(Cube Tag Reference)
 
Line 1: Line 1:
= Cube Tag Reference =
+
= Circle Tag Reference =
  
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
Line 5: Line 5:
 
== Introduction ==
 
== 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 an Arc, such as position, size, height, as well as drawing styles.
+
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 ==
 
== Tag Attributes ==
Line 24: Line 24:
 
** '''Usage:''' <circle bordercolor="#FF00FF" />.
 
** '''Usage:''' <circle bordercolor="#FF00FF" />.
 
** The ''bordercolor'' attribute sets a specific color of the border.
 
** The ''bordercolor'' attribute sets a specific color of the border.
** If omitted, the arc will be drawn borderless.
+
** If omitted, the circle will be drawn borderless.
  
 
== Syntax ==
 
== Syntax ==

Latest revision as of 09:58, 13 April 2007

Circle Tag Reference

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

<canvas>
  <circle position="40, 40" size="30" fillcolor="#09a" bordercolor="#000" />
</canvas>

References

  • None.