Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
vite
Commits
5f4a26b3
Commit
5f4a26b3
authored
Feb 06, 2014
by
Mathieu Faverge
Browse files
Random color when not given
parent
10c85cad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/trace/values/Color.cpp
View file @
5f4a26b3
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment