Ellipses
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,
)
Param | Type | Default | Description |
---|---|---|---|
x | i32 | 0 | X position of the ellipse. |
y | i32 | 0 | Y position of the ellipse. |
w | u32 | 0 | Width of the ellipse in pixels. |
h | u32 | 0 | Height of the ellipse in pixels. |
color | u32 | 0xffffffff | Hex color to fill ellipse with. |
rotation | u32 | 0 | Degrees of rotation. Positive clockwise. Negative counter-clockwise. |
border_size | i32 | 0 | Border width in pixels. |
border_color | u32 | 0x000000 | Border color as RGBA hex. |
fixed | bool | false | If true , the ellipse's size and position are unaffected by the camera. |
bounds | Bounds | Sets the x , y , w , h of the ellipse. |