Skip to content

Circle

The <Circle> primitive draws an SVG circle at a given center point with a specified radius. Use it for dots, nodes, highlights, and any round shape in your scenes.

0.00s / 2.97s · F0
PropTypeDefaultDescription
cxnumber0X coordinate of the circle center
cynumber0Y coordinate of the circle center
rnumber10Radius of the circle
fillstring'none'Fill color
strokestring'currentColor'Stroke color
strokeWidthnumber1Width of the stroke
opacitynumber1Opacity from 0 to 1
elements: {
orbit: {
id: 'orbit',
type: 'circle',
props: { type: 'circle', cx: 150, cy: 150, r: 60, stroke: '$accent', strokeWidth: 3, fill: 'none' },
},
highlight: {
id: 'highlight',
type: 'circle',
props: { type: 'circle', cx: 350, cy: 150, r: 60, stroke: '$secondary', strokeWidth: 3, fill: 'none' },
},
}