mcbanner 0.1.1

A simple library to generate Minecraft banner images.
Documentation

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.1"

Example

The Banner struct is the main entrypoint of the library.

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

fn main() {
    let mut banner = Banner::new(MCColor::Lime);
    banner.add_pattern(Pattern::Creeper, MCColor::Black);
    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.