effect-motion
API Referenceeffect-motionNamespacesEntityVariables

Circle

const Circle: TaggedStruct<"Circle", {

Variable: Circle

const Circle: TaggedStruct<"Circle", {
  fillColor: withConstructorDefault<typeof Color>;
  opacity: withConstructorDefault<Number>;
  position: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  radius: withConstructorDefault<Number>;
  rotation: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  scale: withConstructorDefault<TaggedStruct<"Vec3", {
     x: withConstructorDefault<Number>;
     y: withConstructorDefault<Number>;
     z: withConstructorDefault<Number>;
  }>>;
  strokeColor: optionalKey<typeof Color>;
  strokeWidth: withConstructorDefault<Number>;
  visible: withConstructorDefault<Boolean>;
}>;

Defined in: packages/motion/src/Entity.ts:188

A filled circle of a given radius, centered on its position.

On this page