• Remix
  • Share
  • New Entry

on 15 Oct 2022
  • 38
  • 1.03K
  • 2
  • 4
  • 193
% Cody 10th Anniversary Contest
% Problem 55770. Jack O'Lantern
% Solved by Victoria A. Sablina
A = 2*ones(14,11);
A([1:2 14],[1 11]) = 3;
A([1 14],[2 10]) = 3;
A([5 6],[3:4 8:9]) = 1;
A(7,6) = 1;
A(9,[2:3 9:10]) = 1;
A(10,[4 8]) = 1;
A(11,5:7) = 1;
c = [0 0 0; 1 0.39 0; 1 1 1];
image(A);
colormap(c);
axis off;
Image
Remix Tree