Toggle Sidebar B
Light & dark mode D

Circle

Generate a circle with adjustable size and softness

Generate a circle with adjustable size and softness

Props

PropTypeDefaultDescription
colorcolor#ffffffThe color of the circle
radiusrange1The radius of the circle. A value of one (1) is sets the circle to fit the canvas.
softnessrange0Edge softness. Lower values like zero (0) are sharp, higher values like one (1) are softer.
centerposition{"x":0.5,"y":0.5}The center point of the circle
strokeThicknessrange0The thickness of the stroke outline. Zero (0) means no stroke.
strokeColorcolor#000000The color of the stroke outline
strokePosition"outside" | "center" | "inside"centerPosition of the stroke relative to the circle edge
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for blending fill and stroke colors in soft edges

Usage

vue
<Shader>
  <Circle
    color="#ffffff"
    :radius="1"
  />
</Shader>