- /
-
Confetti Rain 2
on 28 Oct 2021
- 8
- 82
- 0
- 0
- 254
z=([0 1 1 0;0 0 1 1]-.5)*.03;
R=@(x)[cos(x) -sin(x);sin(x) cos(x)];
c=hsv(201);
for i=1:2e3
t=rand*2*pi;
x=rand;
y=R(t)*z*x+rand(2,1);
patch(y(1,:),y(2,:),x+0*y(2,:),c(round(t/pi*100)+1,:)*x,'edgec','n');
end
axis equal off;
set(gca,'units','norm','posi',[0 0 1 1]);
zoom(2);