- /
-
coloured fairy lights
on 30 Oct 2021
- 15
- 48
- 1
- 0
- 280
w=@rescale;
p=@randi;
a=500;
u=ones(a);
colormap([[0 0 0]
w(hsv,.8,1)])
d=-200:.801:200;
image(u)
hold
for k=1:5
f=-(rand/4+.5)*.005*(d-120*(rand-.5)).^2+p(220)+170;
z=f(1:24:end)-260;
for j=-10:10
r=exp(-abs((d+20*j-5*(rand-.5))+(d'-z(j+11))*i)/7);
image(p(257)*u,'AlphaData',w(r,0,1));
end
end
camva(3.8)