mirror of
https://github.com/ricoriedel/wipe.git
synced 2025-04-07 08:18:21 +00:00
17 lines
369 B
Rust
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;
|
|
} |