Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DM-Earth/pixpup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixpup

Rasterize your shapes on a bitmap.

Example

fn main() {
    let mut bitmap: Bitmap = Bitmap::new(48, 48);
    Line {
        start: Pos(1, 1),
        end: Pos(32, 16),
    }
    .rasterize(&mut bitmap);
    println!(
        "{}",
        PlainBitFormatter::new(
            "~>",
            "  ",
            || bitmap.bits().horizontal_bits(),
            bitmap.width(),
            bitmap.height()
        )
    )
}

About

[MIRROR] Rasterize your shapes on a bitmap.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages