• New Entry

Diamond

KSSV on 20 Oct 2021
  • 43
  • 85
  • 3
  • 0
  • 258
% Draw circle
t=linspace(0,2*pi,500) ;
R=.5;
% Generate random numbers
m=2000;
x=rand(m,1);
y=rand(m,1);
% Get random points inside the circle
i=inpolygon(x,y,R+R*cos(t),R+R*sin(t));
x=x(i);
y=y(i);
% Generate delaunay
d=delaunay(x,y);
c1=linspace(0.1,1.1 ,nnz(i))';
c=[c1 0*c1 .5*c1] ;
% plot
figure('color','k')
patch('faces',d,'vertices',[x y],'facevertexc',c)
shading faceted
axis off
Remix Tree
Load full remix tree