Skip to content

makeCircle

makeCircle(opt): GameObj<BaseComps & RenderComps>

Make an object with a circle component. Maker extends makeRender

Parameters

ParameterType
optObjOpt & RenderOpt & CircleOpt

Returns

GameObj<BaseComps & RenderComps>

Example

const circle = k.add(k.makeCircle(\{
radius: 50, // from makeCircle
color: "#ff00ff", // from makeRender
\}));
@group Object Makers
## Source
global.d.ts:7