From d90155141dfbb1896b9969091a60625d4dd35335 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Mon, 22 Feb 2021 08:20:50 +1100 Subject: [PATCH] fix view shape for perlin --- src/algorithms/perlinnoise.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/perlinnoise.jl b/src/algorithms/perlinnoise.jl index 8bbbf63..1973b03 100644 --- a/src/algorithms/perlinnoise.jl +++ b/src/algorithms/perlinnoise.jl @@ -123,7 +123,7 @@ function _mesh!(A, x, y) return A end -function _view_from_square(source, ncol, nrow) +function _view_from_square(source, nrow, ncol) # Extract a portion of the array to match the dimensions dim = size(source, 1) startrow = rand(1:(dim - nrow + 1))