• Remix
  • Share
  • New Entry

on 16 Oct 2022
  • 8
  • 30
  • 0
  • 0
  • 273
%Piet MATLAB
% figure('Color',[.7 .7 .7]
%nO 2 , nO 3
a=[4 4 0 9
8 8 0 4
0 9 1 1
1 2 2 2
1 8 3 3
0 4 6 6
4 9 4 4
1 1 0 9
2 2 1 9];
%patch coords
b=[1 2 3 6
4 9 4 9
0 4 0 1
2 8 1 3
1 2 6 9];
%color palettes, R B R Y orange
f=reshape([.5 .3 .3
.9 .6 .2
.8 .1 .1
1 .9 .2
.2 .2 .9
],5,1,3);
patch([b(:,[1 2 2 1])]',[b(:,[3 3 4 4])]',f)
hold
Current plot held
for k=1:9
plot(a(k,1:2),a(k,3:4),'k','LineWidth',7);
end
axis off
Image
Remix Tree