- /
-
Stained Glass Membrane
on 14 Oct 2021
- 12
- 124
- 0
- 0
- 279
L=membrane(1,100);
N=size(L,1);
nc=1e3;
[X,Y]=meshgrid(1:N);
i=unique(randi(N^2,700,1));
[v,c]=voronoin([X(i),Y(i)]);
cellfun(@(x,co)patch('faces',x,'vertices',v,'edgeco','k','faceco',co),c,num2cell(interp1(cool(nc),(L(i)-min(L(:)))/(max(L(:))-min(L(:)))*(nc-1)+1),2));
axis([1 N 1 N])
axis off