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
import { Player, FadeIn, Draw, Circle } from '@elucim/core';
<Player width={500} height={300} fps={30} durationInFrames={60}>
<FadeIn duration={20}>
<Circle cx={150} cy={150} r={60} stroke="#6c5ce7" strokeWidth={3} fill="none" />
</FadeIn>
<Draw duration={30}>
<Circle cx={350} cy={150} r={60} stroke="#ff6b6b" strokeWidth={3} fill="none" />
</Draw>
</Player>