pure-noise 0.2.1.0 → 0.2.1.1
raw patch · 4 files changed
+16/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- README.md +4/−4
- pure-noise.cabal +5/−1
- src/Numeric/Noise.hs +1/−1
CHANGELOG.md view
@@ -8,6 +8,12 @@ ## Unreleased +## 0.2.1.1 2025-10-31++### Changed++- Fixed some errata in the documentation+ ## 0.2.1.0 2025-10-31 ### Added
README.md view
@@ -34,7 +34,7 @@ ## Usage -The library provides composable noise functions `Noise2` and `Noise3` are type+The library provides composable noise functions. `Noise2` and `Noise3` are type aliases for 2D and 3D noise. Noise functions can be composed transparently using standard operators with minimal performance cost. @@ -122,9 +122,9 @@ domainWarped = do -- Generate 3D fractal for warp offsets let warpNoise = Noise.fractal3 Noise.defaultFractalConfig{Noise.octaves = 5} Noise.perlin3- -- Extract X and Y warp offsets by slicing at z=0- warpX <- Noise.sliceX3 0.0 warpNoise- warpY <- Noise.sliceY3 0.0 warpNoise+ -- Sample 3D noise at different slices to create warp offsets+ warpX <- Noise.sliceX3 0.0 warpNoise -- Samples at (0, x, y)+ warpY <- Noise.sliceY3 0.0 warpNoise -- Samples at (x, 0, y) -- Apply warping to base noise coordinates Noise.warp (\(x, y) -> (x + 30 * warpX, y + 30 * warpY)) $ Noise.fractal2 Noise.defaultFractalConfig{Noise.octaves = 5} Noise.openSimplex2
pure-noise.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: pure-noise-version: 0.2.1.0+version: 0.2.1.1 synopsis: High-performance composable noise generation (Perlin, Simplex, Cellular) description: A high-performance noise generation library ported from FastNoiseLite. Provides N-dimensional noise functions (Perlin, OpenSimplex, SuperSimplex,@@ -21,6 +21,10 @@ license: BSD-3-Clause license-file: LICENSE build-type: Simple+tested-with:+ GHC == 9.6.7+ , GHC == 9.8.4+ , GHC == 9.10.2 extra-source-files: README.md extra-doc-files:
src/Numeric/Noise.hs view
@@ -9,7 +9,7 @@ -- -- Noise functions are built on a unified 'Noise' type that abstracts over -- the seed and coordinate parameters. 'Noise2' and 'Noise3' are convenient--- type aliases for 2D and 3D noise. These can be composed using algebraically+-- type aliases for 2D and 3D noise. These can be composed algebraically -- with minimal performance overhead. -- -- Noise values are generally clamped to @[-1, 1]@, though some functions may