Skip to content

Commit

Permalink
fix view shape for perlin
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Feb 24, 2021
1 parent dd17323 commit d901551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/perlinnoise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d901551

Please sign in to comment.