noises-and-patterns 0.1.0

A procedural creator library for 2D noises and patterns
Documentation
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;
}