function triangle_ijk_fill_test ( )

%*****************************************************************************80
%
%% triangle_ijk_fill_test tests triangle_ijk_fill().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 August 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_ijk_fill_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  triangle_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;
  polyiamond_grid_plot ( imin, jmin, imax, jmax, r, color_back, ...
    color_tri, number );
%
%  Keep the background grid, and add two triangles.
%
  hold ( 'on' );

  i = 2;
  j = 3;
  k = 1;
  r = 0.70;
  color = 'y';
  label = '#1';
  triangle_ijk_fill ( i, j, k, r, color, label );

  i = 4;
  j = 1;
  k = 0;
  r = 0.90;
  color = 'b';
  label = '#2';
  triangle_ijk_fill ( i, j, k, r, color, label );

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

  return
end
