Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/profan/yakui-macroquad
https://github.com/profan/yakui-macroquad
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/profan/yakui-macroquad
- Owner: profan
- License: mit
- Created: 2023-11-07T20:41:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-13T19:11:47.000Z (7 months ago)
- Last Synced: 2024-10-31T12:02:08.408Z (about 2 months ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yakui-macroquad
-----------------------
[![CI](https://github.com/profan/yakui-macroquad/actions/workflows/rust.yml/badge.svg)](https://github.com/profan/yakui-macroquad/actions/workflows/rust.yml)
[![Docs](https://docs.rs/yakui-macroquad/badge.svg?version=0.3.1)](https://docs.rs/yakui-macroquad/0.3.1/yakui_macroquad/)
[![Crates.io version](https://img.shields.io/crates/v/yakui-macroquad.svg)](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.5 and yakui 0.2.0.# 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