- /
-
Ripples in the Pond - summer
on 18 Oct 2021
- 8
- 28
- 2
- 0
- 276
q=256;
a=zeros(q);
b=a;
z=@()randi(q);
for i=1:.02:3
[X,Y]=meshgrid(linspace(i,10+i,q),linspace(1,20,q));
I=0.6; %I=sin(X)+cos(Y);
[b,a] = r(a,b);
imshow(I+1.5*a, 'Colormap',summer(256));
if (z()<20)
b(z(),z())=rand()*20+9 ;
end
drawnow;
end
function [o,u]=r(o,u)
m = [0,1,0;1,0,1;0,1,0];
t=filter2(m,o)/2-u;
u = t-t/128;
end