% hw037.m
%  Use the function "ellipse_fill(cx,cy,w,h,c)" to draw a face.
%

%
%  Clear the graphics frame.
%
clf
%
%  Prepare for several plots on the same image.
%
hold on
%
%  Face shape in yellow.
%
ellipse_fill ( 4.0, 4.0, 7.0, 8.0, 'y' )
%
%  ears.
%
ellipse_fill ( 0.5, 5.0, 1.0, 2.0, 'm' )
ellipse_fill ( 7.5, 5.0, 1.0, 2.0, 'm' )
%
%  Lips and mouth.
%
ellipse_fill ( 4.0, 1.0, 2.4, 0.8, 'r' )
ellipse_fill ( 4.0, 1.0, 2.0, 0.5, 'k' )
%
%  Blue eyes.
%
ellipse_fill ( 3.0, 4.5, 1.0, 0.6, 'b' )
ellipse_fill ( 5.0, 4.5, 1.0, 0.6, 'b' )
%
%  Green nose.
%
ellipse_fill ( 4.0, 3.0, 0.5, 2.0, 'g' )
%
%  Done with plotting commands.
%
hold off
%
%  Make x and y scales equal.
%
axis equal
%
%  Add grid lines.
%
grid on
%
%  Save a copy of the image.
%
print ( '-djpeg', 'hw037.jpg' )

