wipe/src/fill/mod.rs
2022-04-15 07:50:34 +02:00

17 lines
369 B
Rust

pub mod level;
pub mod circle;
pub mod stripes;
use crate::vec::Vector;
#[cfg(test)]
use mockall::automock;
/// Used to choose the colors of characters.
#[cfg_attr(test, automock)]
pub trait FillMode {
/// Gets the color for this character.
/// # Arguments
/// * `step`: `0 <= step` and `step <= 1`
fn sample(&self, level: f32, pos: Vector) -> f32;
}