1 2 3 4 5 6 7 8 9
use crate::prelude::*;
pub trait Pattern {
fn new() -> Self;
/// 2D pattern for the given position and display ratio (width / height)
fn pattern_2d(&self, p: (FP, FP)) -> FP;
}
1 2 3 4 5 6 7 8 9
use crate::prelude::*;
pub trait Pattern {
fn new() -> Self;
/// 2D pattern for the given position and display ratio (width / height)
fn pattern_2d(&self, p: (FP, FP)) -> FP;
}