<circle>
<circle> is a Graphical
component that renders a circle when nested inside a <graph>.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
applyStyleToLabel = "…" | boolean | "true" "false" |
center = "…" | [ math ] | |
displayDecimals = "…" | integer | |
displayDigits = "…" | integer | |
displaySmallAsZero = "…" | number | |
draggable = "…" | boolean | "true" "false" |
extrapolateBackward = "…" | boolean | "true" "false" |
extrapolateForward = "…" | boolean | "true" "false" |
filled = "…" | boolean | "true" "false" |
flipFunction = "…" | boolean | "true" "false" |
hideOffGraphIndicator = "…" | boolean | "true" "false" |
labelIsName = "…" | boolean | "true" "false" |
labelPosition = "…" | text | "upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" |
layer = "…" | integer | |
nearestPointAsCurve = "…" | "true" "false" | |
numDiscretizationPoints = "…" | number | |
padZeros = "…" | boolean | "true" "false" |
periodic = "…" | boolean | "true" "false" |
radius = "…" | math | |
showCoordsWhenDragging = "…" | boolean | "true" "false" |
splineForm = "…" | text | "centripetal" "uniform" |
splineTension = "…" | number | |
through = "…" |
| Property | Type |
|---|---|
$c.applyStyleToLabel | boolean |
$c.area | math |
$c.borderStyleDescription | text |
$c.center | [ math ] |
$c.circumference | math |
$c.diameter | math |
$c.disabled | boolean |
$c.displayDecimals | integer |
$c.displayDigits | integer |
$c.displaySmallAsZero | number |
$c.draggable | boolean |
$c.extrapolateBackward | boolean |
$c.extrapolateForward | boolean |
$c.filled | boolean |
$c.fillStyleDescription | text |
$c.fixed | boolean |
$c.fixLocation | boolean |
$c.flipFunction | boolean |
$c.hidden | boolean |
$c.hideOffGraphIndicator | boolean |
$c.label | label |
$c.labelIsName | boolean |
$c.labelPosition | text |
$c.layer | integer |
$c.numDiscretizationPoints | number |
$c.padZeros | boolean |
$c.parMax | number |
$c.parMin | number |
$c.periodic | boolean |
$c.radius | math |
$c.showCoordsWhenDragging | boolean |
$c.splineForm | text |
$c.splineTension | number |
$c.styleDescription | text |
$c.styleDescriptionWithNoun | text |
$c.throughPoints | [ math ] |
Example: Default <circle>
This is a default <circle> without any additional attributes specified.
It has a default radius of and center at .
Example: <circle> with center and radius
The center and radius of the circle are specified as attributes.
Example: <circle> through 3 points
Three points the circle passes through are specified using the through attribute.
Attribute Example: through
The through attribute can be used to specify one to three through-points
and can be used in combination with other attributes.
Attribute Example: center
The center attribute references a constrained point, thereby
restricting the movement of the <circle> to a grid.
Attribute Example: radius
A <circle> is defined with default center at the origin
and a radius specified with a user-input.
Attribute Example: filled
Use the filled attribute to fill in a <circle> with the
color corresponding to its styleNumber.
Attribute Example: Standard graphical attributes
The uses of the following standard graphical attributes are illustrated:
hide, draggable, layer, styleNumber, applyStyleToLabel and labelIsName.
Layers: By adjusting the layer attribute number, geometry can be placed
in front of or behind other geometry. The default layer number is 0; all
higher numbers are placed in front.
Attribute Example: throughPoints
The throughPoints property renders the values of the points specified
in the through attribute stored in an array. These can be rendered on a
<graph> or as a math. Enclose the copy macro in an <asList>
component for clarity when rendering as a math.
Individual through-points or coordinates of individual through-points can be accessed using array notation.
Property Example: Style properties
The styleDescription, styleDescriptionWithNoun, fillStyleDescription,
and borderStyleDescription properties render a text description
corresponding to the styleNumber of the component.