/* sinewaves2.cxx  */
/* Created by Laurence D. Finston (LDF) So 13. Aug 14:04:39 CEST 2023  */

* (1) Copyright and License.

/* Copyright (C) 2023 Laurence Finston */

/* This file is free software; you can redistribute it and/or modify  */
/* it under the terms of the GNU General Public License as published by  */
/* the Free Software Foundation; either version 3 of the License, or  */
/* (at your option) any later version.   */

/* This file is distributed in the hope that it will be useful,  */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of  */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  */
/* GNU General Public License for more details.   */

/* You should have received a copy of the GNU General Public License  */
/* along with this file; if not, write to the Free Software  */
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA  */

/* Please send bug reports to Laurence.Finston@gmx.de */

/* The author can be contacted at:  */

/* Laurence Finston  */
/* Laurence.Finston@gmx.de */

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>

#include <string>
#include <fstream>
#include <iomanip>
#include <ios>
#include <iostream>
#include <iterator>
#include <sstream>   
#include <string.h> 
#include <vector> 
#include <vector> 

using namespace std;

stringstream cerr_strm;

int
main(int argc, char *argv[])
{
    int status = 0;

    cerr << "Entering `ttemp'." << endl;

    for (int i = 1; i <= 300; ++i)
    {
/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "convert -transparent red sinewaves_" << setw(3) << setfill('0') 
                 << i << ".png R.png";


       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;



/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "convert -transparent blue sinewaves_" << setw(3) << setfill('0') << i << ".png B.png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;


/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "composite R.png lasurrotdunkel.png R" << setw(3) << setfill('0') << i << ".png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;

/* ** (2) */

       cerr_strm.str("");


       cerr_strm << "mogrify -transparent blue R" << setw(3) << setfill('0') << i << ".png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;

/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "composite B.png pariser_blau.png B" << setw(3) << setfill('0') << i << ".png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;

/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "mogrify -transparent red B" << setw(3) << setfill('0') << i << ".png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;

/* ** (2) */

       cerr_strm.str("");

       cerr_strm << "composite R" << setw(3) << setfill('0') << i << ".png B" 
                 << setw(3) << setfill('0') << i << ".png C" << setw(3) << setfill('0') << i
                 << ".png";

       status = system(cerr_strm.str().c_str());

       cerr << cerr_strm.str() << endl;

/* ** (2) */

       cerr_strm.str("");

    }  /* |for|  */

    cerr << "Exiting `ttemp'." << endl;


   return 0;
}


/* Local Variables: */
/* mode:CWEB */
/* eval:(display-time) */
/* run-ctangle-on-file:"points.web" */
/* run-cweb-on-file:"points.web" */
/* run-cweave-on-file:"3DLDFprg.web" */
/* makefile:"makefile" */
/* executable-name:"pp" */
/* use-g++:t */
/* eval:(read-abbrev-file) */
/* indent-tabs-mode:nil */
/* End: */
