• Remix
  • Share
  • New Entry

on 10 Oct 2021
  • 44
  • 42
  • 0
  • 0
  • 260
figure(color='w')
o=@(o)ones(1,o);
x=[0 1 1 0];
y=[0 0 1 1];
z=[8 1:7 o(4) 1:4;
1 o(7)*3 3:6 o(4)*7;
1 o(15)*2];
m={'r','b'};
fill([-1 10 10 -1]+.5,[-1 -1 10 10]+.5,'k')
hold on
for i=0:9
for j=0:9
fill(x+i,y+j,'g')
hold on
end
end
for i=z
fill(x+i(1),y+i(2),m{i(3)})
end
axis equal off
Image
Remix Tree