aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 40ed638f677d98ce2e028e954dba19a1286c2e08 (plain)
1
2
3
4
5
6
7
8
9
10
use color::Color;

pub mod color;
pub mod pattern;
pub mod transform;

pub trait Sample {
    fn sample(&mut self, x: f64, y: f64) -> Color;
    fn clone(&self) -> Box<dyn Sample>;
}