| Crates.io | rexpaint |
| lib.rs | rexpaint |
| version | 0.1.1 |
| created_at | 2018-10-21 19:22:35.593235+00 |
| updated_at | 2019-10-15 20:17:08.951213+00 |
| description | This crate provides functionality for reading and writing .xp files of the Grid Sage Games REXPaint ASCII art editor |
| homepage | |
| repository | https://gitlab.com/vmedea/rexpaint-rs |
| max_upload_size | |
| id | 91880 |
| size | 148,450 |

This crate provides functionality for reading and writing .xp files of the
Grid Sage Games REXPaint
ASCII art editor.
This can be used to import the images directly into a game, or to build tools for generating or manipulating images.
Automatically generated documentation for the crate can be found on docs.rs.
A few example tools are part of the crate
noise.xp,
which can then be read into REXPaint. The color map used to map noise values to colors is selectable.

.xp file of a specified size likecargo run --example textwrap /path/to/text test.xp 16 8
The text is converted from unicode to codepage 437, undefined characters are replaced with ■!
xp image given on the command line using the popular tile-based rendering library libtcod
(tcod-rs). This is likely the example that you want if you want to use it in a roguelike game.See these examples for how to use the library.