• Remix
  • Share
  • New Entry

on 26 Oct 2022
  • 20
  • 122
  • 0
  • 2
  • 280
% set up background lights
r=@()rand(50,1);
bubblechart(r(),r(),r(),r())
set(gca,Color='k',Colorm=hot)
% flatten and blur image
f=getframe;
close
image(imfilter(f.cdata,ones(10)/100))
hold on
% Add rain on the window
% The 450 and 433 values are customized to this figure size.
[x,y,z]=sphere;
for i=1:700
t=randg(2);
surf(t*x+450*rand,2*t*y+433*rand,t*z,FaceC='w',FaceA=.5,EdgeC='n')
end
light(Po=[0,1,.3]); % rain drops should be dark on top and light on bottom
material dull
axis equal off
Image
Remix Tree