(cfg: Config, seed_off: int, scale: int, octaves: int, smooth: int = 0)
| 371 | |
| 372 | |
| 373 | def noise_field(cfg: Config, seed_off: int, scale: int, octaves: int, smooth: int = 0) -> np.ndarray: |
| 374 | a = normalize01(fbm((cfg.rows, cfg.cols), cfg.seed + seed_off, scale, octaves, cfg.persistence, cfg.lacunarity)) |
| 375 | return smooth_box(a, smooth) |
| 376 | |
| 377 | |
| 378 | def warp_int(a: np.ndarray, wx: np.ndarray, wy: np.ndarray) -> np.ndarray: |
no test coverage detected