#image #rpg #maker #parser

xyz

Parser for the RPG Maker XYZ image format

3 unstable releases

Uses old Rust 2015

0.2.1 Apr 24, 2017
0.2.0 Mar 13, 2016
0.1.0 Mar 6, 2016

#28 in #maker

Download history 2/week @ 2024-11-13 7/week @ 2024-11-20 8/week @ 2024-11-27 12/week @ 2024-12-04 20/week @ 2024-12-11 5/week @ 2024-12-18 9/week @ 2025-01-08 19/week @ 2025-01-15 13/week @ 2025-01-22 9/week @ 2025-01-29 23/week @ 2025-02-05 6/week @ 2025-02-12 17/week @ 2025-02-19 27/week @ 2025-02-26

76 downloads per month
Used in 3 crates (via picto)

MIT/Apache

57KB
59 lines

rust-xyz

xyz is a library for reading and writing the RPG Maker XYZ image format.


lib.rs:

Reader and writer for the RPG Maker XYZ image format.

Example

This library works well with the image crate.

Here's an example of reading an XYZ image into an ImageBuffer:

extern crate image;
extern crate xyz;

use image::RgbImage;
use std::fs::File;

let file = try!(File::open("boat2.xyz"));
let raw = try!(xyz::read(&mut file));
let boat = RgbImage::from_raw(raw.width as u32, raw.height as u32, raw.to_rgb_buffer());

You can then do something useful with the boat.

Dependencies

~0.6–1MB
~20K SLoC