truchet 0.1.1

Library for truchet tiling
Documentation
1
2
3
4
5
6
use crate::vec2::Vec2;

pub trait Image {
    fn size(&self) -> Vec2<usize>;
    fn get_pixel_brightness(&self, pos: Vec2<usize>) -> f32;
}