User Tools


A two dimensional shape made by drawing a curve that is always the same distance from a center. All points are the same distance from the center.

Circle Learn about circles at

The following show examples of creating circles. The radius specifies the size. The resolution option determines the number of segments to create in 360 degrees of rotation.

Note: See the start of 2D Primitives for information about the resolution of two dimensional shapes.


  • radius : 1
  • center : [0,0]
  • resolution: defaultResolution2D (32)
let c1 = circle(1) 
let c2 = circle({r: 2, fn:5})            // fn = number of segments to approximate the circle
let c3 = circle({r: 3, center: true})

The CSG library functions can also be used. NOTE: Deprecated in the V2 API

let c4 ={center: [0,0], radius: 3, resolution: 32})