• Remix
  • Share
  • New Entry

on 11 Oct 2021
  • 17
  • 136
  • 0
  • 0
  • 232
a=5000;
x=[rand(a/2,2).*a-a/2];
[v,c]=voronoin(x);
c((cellfun(@(x)sum(x(x==1)),c)==1))=[];
hold on
l = length(c);
m = jet(l);
for i =1:l
plot(polyshape(v(c{i},:)),'FaceAlpha',1,'FaceColor',m(randi(l),:))
end
xlim([-a/3,a/3])
ylim([-a/3,a/3])
axis off
Remix Tree