Skip to main content

Circle

Circle

A representation of a Circle shape.


Constructor

public Circle

new Circle(pos, radius)

Constructor for Circle.

Parameters

  •  pos: Vector – The position.

  •  radius: number – The radius.


Properties

No publicly accessible properties on Circle

protected pos: Vector

Description needed

protected radius: number

Description needed


Methods

public draw

draw(ctx) => void

Draws the Circle on the canvas.

Parameters

  •  ctx: CanvasRenderingContext2D – Provides the 2D rendering context for the drawing surface of an element.

Static Methods

No static methods for Circle