• Remix
  • Share
  • New Entry

  • Augusto Mazzei

  • /
  • MANDALA Generator - Polygons Usage - Try it on your PC

on 4 Oct 2021
  • 12
  • 233
  • 0
  • 0
  • 267
n=randi(7)+2;
P=@(a,b,c,d) plot(nsidedpoly(a,'C',b','S',c),'FaceC',d,'EdgeC','n');
axes('Visible','off')
hold on
for i=1:80
K=rand(1,3);
r=rand/10; L=randi([3 9]);
c=rand(2,1);
for j=1:n
A=2*pi/n*j;
m=[cos(A) sin(A);-sin(A) cos(A)];
P(L,(m*c),r,K);
P(L,(m*c.*[1;-1]),r,K);
end
end
axis equal
Remix Tree