Commit 5f4a26b3 authored by Mathieu Faverge's avatar Mathieu Faverge

Random color when not given

parent 10c85cad
......@@ -6,13 +6,13 @@
** use, modify and/or redistribute the software under the terms of the
** CeCILL-A license as circulated by CEA, CNRS and INRIA at the following
** URL: "http://www.cecill.info".
**
**
** As a counterpart to the access to the source code and rights to copy,
** modify and redistribute granted by the license, users are provided
** only with a limited warranty and the software's author, the holder of
** the economic rights, and the successive licensors have only limited
** liability.
**
**
** In this respect, the user's attention is drawn to the risks associated
** with loading, using, modifying and/or developing or reproducing the
** software by the user in light of its specific status of free software,
......@@ -23,7 +23,7 @@
** their requirements in conditions enabling the security of their
** systems and/or data to be ensured and, more generally, to use and
** operate it in the same conditions as regards security.
**
**
** The fact that you are presently reading this means that you have had
** knowledge of the CeCILL-A license and that you accept its terms.
**
......@@ -37,13 +37,14 @@
** - MARCOUEILLE Jule
** - NOISETTE Pascal
** - REDONDY Arthur
** - VUCHENER Clément
** - VUCHENER Clément
**
*/
#include <string>
#include <sstream>
#include <iomanip> // For std::setprecision
#include <cstdlib>
/* -- */
#include "common/Tools.hpp"
/* -- */
......@@ -52,7 +53,9 @@
using namespace std;
Color::Color() : _r(0), _g(0), _b(0){
Color::Color() : _r((rand()%256)/256),
_g((rand()%256)/256),
_b((rand()%256)/256) {
_is_correct = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment