function ijk_fill_test ( )

%*****************************************************************************80
%
%% ijk_fill_test() tests ijk_fill().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 October 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ijk_fill_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ijk_fill plots a triangle given IJK coordinates.\n' );

  clf ( );
%
%  Draw a background grid.
%
  imin = 1;
  jmin = 1;
  imax = 6;
  jmax = 4;
  r = 0.85;
  color_back = [ 0.9, 0.9, 0.9 ];
  color_tri = [ 1.0, 0.0, 0.0 ];
  number = false;
  grid_plot ( imin, imax, jmin, jmax, r, color_back, color_tri, number );
%
%  Keep the background grid, and add two triangles.
%
  hold ( 'on' );

  ijk = [ 2, 3, 1 ];
  r = 0.70;
  color = 'y';
  label = '#1';
  ijk_fill ( ijk, r, color, label );

  ijk = [ 4, 1, 0 ];
  r = 0.90;
  color = 'b';
  label = '#2';
  ijk_fill ( ijk, r, color, label );

  hold ( 'off' );
%
%  Save a copy of the plot.
%
  title ( 'ijk\_fill test' );
  filename = 'ijk_fill_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ijk_fill_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
