pixelar 0.1.0

Show everyone the art hidden inside your code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use pixelar::{colors::*, prelude::*};

fn main() {
    let mut paper = PixelPaper::<5, 5>::default();
    let mut animation = PixelBook::new(Repeat::Infinite);

    animation.add_paper(&paper);

    for i in 0..5 {
        paper.change_pixel_color((i, i), Red);
        paper.change_pixel_color((i, 4 - i), Blue);

        animation.add_paper(&paper);
    }

    animation.save("arts/animated_1.gif").unwrap();
}