Skip to content

Ellipses

Ellipse Screenshot

Overview

You can draw ellipses to your game's canvas using the ellipse! macro.

API

ellipse!

Draws ellipses.

ellipse!(
    x = i32,
    y = i32,
    w = u32,
    h = u32,
    color = u32,
    rotation = u32,
    border_size = i32,
    border_color = u32,
    fixed = bool,
    bounds = Bounds,
)
ParamTypeDefaultDescription
xi320X position of the ellipse.
yi320Y position of the ellipse.
wu320Width of the ellipse in pixels.
hu320Height of the ellipse in pixels.
coloru320xffffffffHex color to fill ellipse with.
rotationu320Degrees of rotation. Positive clockwise. Negative counter-clockwise.
border_sizei320Border width in pixels.
border_coloru320x000000Border color as RGBA hex.
fixedboolfalseIf true, the ellipse's size and position are unaffected by the camera.
boundsBoundsSets the x, y, w, h of the ellipse.