• Remix
  • Share
  • New Entry

  • Tim

  • /
  • Above the clouds

on 27 Oct 2021
  • 27
  • 219
  • 1
  • 0
  • 280
% Remix:
% - make surface more peaky & widen the distribution
% - Make clouds denser
% - Make peaks darker
a=200;
b=(.5:a)'/a;
c=(-cos(b*2*pi)+1).^.2;
d=ones(a);
f=b-.5;
r=f'.^2+f.^2;
% Asymmetric Perlin-ish noise
s=@surf;
% Make mountains
m=50;
s(b,b',abs(ifftn(exp(7i*rand(a))./r.^.9)).*(c*c')*30)
l=(m:-1:1)/m;
% Add clouds:
hold on
for n = 1:m
s(b,b',d*n,d+cat(3,1,1,1),EdgeA=0,FaceA=max(.2,l(n)));
end
% Scale the image right in the window
zlim([-a/2,a])
% Pretty:
shading flat
colormap(flip([b,b,b]))
camva(5)
axis off
Remix Tree