Crate mcbanner

Source
Expand description

§Overview

This library is a simple way to create Minecraft banner images. It uses the image crate under the hood for the image generation.

§Usage

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();
}

Structs§

Banner
Represents a Minecraft banner.

Enums§

MCColor
Minecraft dye colors.
Pattern
Represents a pattern for a Minecraft banner.