• Remix
  • Share
  • New Entry

on 5 Oct 2021
  • 5
  • 19
  • 0
  • 0
  • 278
s=sqrt(2);
Q=[0 0;1-s/2 0;0.5 (s-1)*3/4;s/2 0;1 0];
M=[1 0;0 1;0 1;-1 0];
x=sind(0:90:360);
y=cosd(0:90:360);
for n=1:6
u=[];
for i=1:length(x)-1
v=[x(i+1)-x(i);y(i+1)-y(i)];
u=[u;Q*reshape(M*v,2,2)+[x(i) y(i)]];
end
x=u(:,1);
y=u(:,2);
end
patch(x,y,[.3 .3 .8],'edgecolor',[0.2 0.2 0.7]);
axis equal off;

Image

Remix Tree