- /
-
Rocky Terrain (Find pretzel)
on 18 Oct 2021
- 10
- 38
- 0
- 0
- 271
N=400;
H=randn(N);
[y,x]=meshgrid(1:N);
for n=1:200
d=H-circshift(H,1);
g=(1+tan(d))*0.5;
L=10.*(1-tanh(d)); %
m=mod(round(x+randn(1)*7)-1,N)+1;
o=mod(round(y+L)-1,N)+1;
ig=accumarray([m(:),o(:)],g(:),[N,N]);
H=H-g+ig;
%H=conv2(H,ones(3)/9,'same');
H=conv2(H,ones(3)/9,'same');
end
imshow(diff(H'))
%colormap(gray)
text(9,89,"🥨","FontSize",19)
%caxis([-2,4])