15 lines
219 B
Rust
15 lines
219 B
Rust
use {
|
|
cgmath::Vector2,
|
|
prisma::Rgb,
|
|
|
|
crate::inputs::Inputs
|
|
};
|
|
|
|
pub trait ColorGrid {
|
|
fn get(&self, pos: &Vector2<f32>) -> Rgb<f32>;
|
|
}
|
|
|
|
pub trait Animation {
|
|
fn advance(&mut self, inputs: Inputs);
|
|
}
|
|
|