Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yopox/bevy_text_mode
Bevy plugin adding a texture atlas sprite with configurable background and foreground colors.
https://github.com/yopox/bevy_text_mode
2d bevy palette rust
Last synced: 2 days ago
JSON representation
Bevy plugin adding a texture atlas sprite with configurable background and foreground colors.
- Host: GitHub
- URL: https://github.com/yopox/bevy_text_mode
- Owner: yopox
- License: apache-2.0
- Created: 2023-01-02T13:27:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T20:57:13.000Z (8 months ago)
- Last Synced: 2024-04-14T09:48:26.009Z (7 months ago)
- Topics: 2d, bevy, palette, rust
- Language: Rust
- Homepage: https://crates.io/crates/bevy_text_mode
- Size: 913 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# bevy_text_mode
[![bevy](https://img.shields.io/badge/bevy-v0.14.0-blue.svg)](https://github.com/bevyengine/bevy)
> `bevy_text_mode` adds a `TextModeSprite` component with configurable background and foreground colors.
It makes it easy to use text mode tilesets such as [MRMOTEXT](https://mrmotarius.itch.io/mrmotext).```rust
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,
pub rect: Option,
pub anchor: Anchor,
}
```## Usage
Spawn a `TextModeSpriteBundle` with the desired background and foreground colors.
## Compatible Bevy versions
| `bevy_text_mode` | `bevy` |
|:----------------:|:------:|
| 0.4.0 | 0.14 |
| 0.3.0 | 0.13 |
| 0.2.0 | 0.11 |
| 0.1.1 | 0.10 |