Skip to content

Circles

Circle Screenshot

Overview

You can draw circles to your game's canvas using the circ! macro.

API

circ!

Draws circles.

circ!(
    d = u32,
    x = i32,
    y = i32,
    color = u32,
    border_size = u32,
    border_color = u32,
)
ParamTypeDefaultDescription
du320Diameter of the circle.
xi320X position of the circle.
yi320Y position of the circle.
coloru320xffffffffHex color to fill the circle with.
border_sizeu320Border width in pixels.
border_coloru320x000000Border color as RGBA hex.
fixedboolfalseIf true, the circle's size and position are unaffected by the camera.