MINION = [ ...
 0, 0, 0, 4, 4, 4, 4, 4, 0, 0, 0;
 0, 0, 4, 4, 4, 4, 4, 4, 4, 0, 0;
 0, 4, 2, 2, 4, 2, 2, 4, 4, 4, 0;
 0, 2, 1, 0, 2, 1, 0, 2, 1, 1, 0;
 0, 2, 0, 0, 2, 0, 0, 2, 1, 1, 0;
 0, 4, 2, 2, 4, 2, 2, 4, 4, 4, 0;
 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0;
 0, 4, 4, 4, 4, 4, 1, 4, 4, 4, 0;
 0, 4, 4, 1, 1, 1, 4, 4, 4, 4, 0;
 0, 3, 4, 4, 4, 4, 4, 4, 4, 3, 0;
 0, 4, 3, 3, 3, 3, 3, 3, 3, 4, 0;
 0, 4, 4, 3, 3, 3, 3, 3, 4, 4, 0;
 0, 4, 4, 3, 3, 3, 3, 3, 4, 4, 0;
 0, 4, 3, 3, 3, 3, 3, 3, 3, 4, 0;
 1, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1;
 0, 1, 3, 3, 3, 3, 3, 3, 3, 1, 0;
 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0;
 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0 ];

[ m, n ] = size ( MINION );

%
%  0: white
%  1: black
%  2: gray
%  3: blue
%  4: yellow
%
clf
hold on

for i = 1 : m
  for j = 1 : n

    k = MINION(i,j);

    if ( k == 0 )
      color = [ 1.0, 1.0, 1.0 ];
    elseif ( k == 1 )
      color = [ 0.0, 0.0, 0.0 ];
    elseif ( k == 2 )
      color = [ 0.7, 0.7, 0.7 ];
    elseif ( k == 3 )
      color = [ 0.0, 0.3, 1.0 ];
    elseif ( k == 4 )
      color = [ 1.0, 1.0, 0.0 ];
    end

    a = j - 1;
    b = j;
    c = m - i + 1;
    d = m - i;
    fill ( [ a, b, b, a ], [ c, c, d, d ], color );

  end
end
axis equal
axis off
hold off

print ( '-djpeg', 'mario.jpg' );
