https://github.com/profan/yakui-macroquad
https://github.com/profan/yakui-macroquad
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/profan/yakui-macroquad
- Owner: profan
- License: mit
- Created: 2023-11-07T20:41:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-27T21:24:45.000Z (8 months ago)
- Last Synced: 2025-04-02T05:53:07.825Z (3 months ago)
- Language: Rust
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yakui-macroquad
-----------------------
[](https://github.com/profan/yakui-macroquad/actions/workflows/rust.yml)
[](https://docs.rs/yakui-macroquad/0.4.0/yakui_macroquad/)
[](https://crates.io/crates/yakui-macroquad)This is a little macroquad integration for [yakui](https://github.com/SecondHalfGames/yakui), built ontop of [yakui-miniquad](https://github.com/profan/yakui-miniquad).
# Version
This version is for macroquad 0.4 and yakui 0.3.# Example
```rust
use macroquad::prelude::*;
use yakui_macroquad::*;#[macroquad::main("yakui-macroquad-example")]
async fn main() {
loop {clear_background(WHITE);
yakui_macroquad::start();
yakui::center(|| {
let mut text_box = yakui::widgets::Text::new(32.0, "hello, world!");
text_box.style.color = yakui::Color::BLACK;
text_box.show();
});yakui_macroquad::finish();
yakui_macroquad::draw();
next_frame().await;
}
}
```You can also run the example with `cargo run --example hello-world`.
# License
See LICENSE