function border_plot_test ( )

%*****************************************************************************80
%
%% border_plot_test() tests border_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 April 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'border_plot_test():\n' );
  fprintf ( 1, '  border_plot() plots the border of an Eternity object.\n' );
%
%  Eternity tiles.
%
  eternity_tile_num = 209;

  for k = 1 : eternity_tile_num
    [ w, p_ij ] = eternity_tile_word ( k );
    p_xy = p_ij;
    e = word_to_edge_xy ( w, p_xy );
    label = sprintf ( 'border: tile%03d', k );
    filename = sprintf ( 'tile%03d_border.png', k );
    border_plot ( e, label, filename );
  end
%
%  Serenity tiles.
%
  serenity_tile_num = 8;

  for k = 1 : serenity_tile_num
    [ w, p_ij ] = serenity_tile_word ( k );
    p_xy = p_ij;
    e = word_to_edge_xy ( w, p_xy );
    label = sprintf ( 'border: serenity%d', k );
    filename = sprintf ( 'serenity%d_border.png', k );
    border_plot ( e, label, filename );
  end
%
%  Trinity tiles.
%
  trinity_tile_num = 4;

  for k = 1 : trinity_tile_num
    [ w, p_ij ] = trinity_tile_word ( k );
    p_xy = p_ij;
    e = word_to_edge_xy ( w, p_xy );
    label = sprintf ( 'border: trinity%d', k );
    filename = sprintf ( 'trinity%d_border.png', k );
    border_plot ( e, label, filename );
  end
%
%  Hat monotile.
%
  [ w, p_ij ] = hat_monotile_word ( );
  p_xy = p_ij;
  e = word_to_edge_xy ( w, p_xy );
  label = 'border: hat_monotile';
  filename = 'hat_monotile_border.png';
  border_plot ( e, label, filename );
%
%  Turtle monotile.
%
  [ w, p_ij ] = turtle_monotile_word ( );
  p_xy = p_ij;
  e = word_to_edge_xy ( w, p_xy );
  label = 'border: turtle_monotile';
  filename = 'turtle_monotile_border.png';
  border_plot ( e, label, filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'border_plot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

