| Crates.io | bevy_text_mode |
| lib.rs | bevy_text_mode |
| version | 0.4.0 |
| created_at | 2023-03-12 11:42:18.237852+00 |
| updated_at | 2024-07-19 13:02:40.052624+00 |
| description | Bevy plugin adding a texture atlas sprite with configurable background and foreground colors. |
| homepage | https://github.com/yopox/bevy_text_mode |
| repository | https://github.com/yopox/bevy_text_mode |
| max_upload_size | |
| id | 807981 |
| size | 169,656 |
bevy_text_modeadds aTextModeSpritecomponent with configurable background and foreground colors. It makes it easy to use text mode tilesets such as MRMOTEXT.
pub struct TextModeSprite {
pub bg: LinearRgba,
pub fg: LinearRgba,
pub alpha: f32,
pub flip_x: bool,
pub flip_y: bool,
pub rotation: u8,
pub custom_size: Option<Vec2>,
pub rect: Option<Rect>,
pub anchor: Anchor,
}
Spawn a TextModeSpriteBundle with the desired background and foreground colors.
bevy_text_mode |
bevy |
|---|---|
| 0.4.0 | 0.14 |
| 0.3.0 | 0.13 |
| 0.2.0 | 0.11 |
| 0.1.1 | 0.10 |