Module reference
Graphics/objects/GraphicsCircle module
Functions, objects and constants exposed by the Graphics/objects/GraphicsCircle module.
Object description
Represents a mutable circle used by the Graphics drawing API.
Availability: The GraphicsCircle object is available as new Graphics::GraphicsCircle() and is also returned by Graphics::draw_circle() when it is called with circle coordinates and a colour.
Properties
The object exposes the following public properties:
xandy— circle centre position.radius— circle radius.colour— circle colour.
Example
YASS
$circle = new Graphics::GraphicsCircle() $circle->radius = 64 Graphics::draw_circle($window, $circle)