function cvt_1_movie_test ( )

%*****************************************************************************80
%
%% cvt_1_movie_test() tests cvt_1_movie().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 December 2020
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Qiang Du, Vance Faber, Max Gunzburger,
%    Centroidal Voronoi Tessellations: Applications and Algorithms,
%    SIAM Review, Volume 41, 1999, pages 637-676.
%
  addpath ( '../cvt_1_movie' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cvt_1_movie_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  cvt_1_movie() generates a CVT movie.\n' );
%
%  Choose number of generators.
%
  n = 100;
%
%  Set generator coordinates.
%
  r = rand ( 2, n );
%
%  Set sample ratio (number of sample points per generator.)
%
  ratio = 100;
%
%  Set number of iterations.
%
  it_max = 50;
%
%  Set movie file name.
%
  movie_name = 'cvt_1_movie.avi';
%
%  Make the movie.
%
  cvt_1_movie ( n, r, ratio, it_max, movie_name );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cvt_1_movie_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../cvt_1_movie' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

