Class: Circle

Graphics.Circle

A circular graphic

new Graphics.Circle (game, radius, color)

Name Type Description
game Core.Game the game object.
radius Number radius of the circle.
color String color/style of 2d context.

Methods

getDimentions ()Utils.Vector2d

get width & height
Returns:
Type Description
Utils.Vector2d vector2d of (width, height)

render ()

renders the circle

setDimentions (w, h)

sets width & height
Name Type Description
w Number radius to set
h Number radius to set