Registry / other / macroquad

macroquad

JSON →
library0.4.15rscratesunverified

Simple and easy to use graphics library

# Cargo.toml [dependencies] macroquad = "0.4.15"
INSTALL
IMPORT
SIG · MACROQUAD
M
macroquad
otherrustv0.4.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

draw_circle
use macroquad::prelude::*;

Draw a circle with Macroquad

use macroquad::prelude::*; #[macroquad::main("MyGame")] async fn main() { loop { clear_background(RED); draw_circle(400.0, 300.0, 50.0, YELLOW); next_frame().await } }
Debug
Known issues
gotchaRequires the #[macroquad::main] attribute for async main
fix
Use #[macroquad::main("WindowTitle")] instead of #[tokio::main]
affects: >=0.4.0
Upgrade
Version history
0.4.15latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
macroquad — cargo add macroquad · libregistry