mcbanner 0.1.0

A simple library to generate Minecraft banner images.
Documentation
mcbanner-0.1.0 has been yanked.

MCBanner

A simple library to generate Minecraft banner images.

It uses the image under the hood for the image generation.

Usage

Add this to your Cargo.toml:

[dependencies]

mcbanner = "0.1.0"

Example

The Banner struct is the main entrypoint of the library.

use mcbanner::{Banner, Pattern, MCColor};

fn main() {
    let mut banner = Banner::new(MCColor::Red);
    banner.add_pattern(Pattern::Bricks, MCColor::Orange);
    banner.render();
    banner.save("banner.png").unwrap();
}

Running this example code gives you the next result:

License

This project is licensed under the MIT License - see the LICENSE file for details.