Subversion Repositories DIN Is Noise

Rev

Rev 1857 | Rev 1924 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1857 Rev 1897
Line 10... Line 10...
10
#define __color__
10
#define __color__
11
11
12
#include "dingl.h"
12
#include "dingl.h"
13
#include "random.h"
13
#include "random.h"
14
#include "utils.h"
14
#include "utils.h"
-
 
15
#include <fstream>
15
16
16
inline void hex2rgb (unsigned char hr, unsigned char hg, unsigned char hb, float& r, float& g, float& b) {
17
inline void hex2rgb (unsigned char hr, unsigned char hg, unsigned char hb, float& r, float& g, float& b) {
17
  const unsigned char ff = 0xff;
18
  const unsigned char ff = 0xff;
18
  const float ff1 = 1.0f / ff;
19
  const float ff1 = 1.0f / ff;
19
  r = hr * ff1;
20
  r = hr * ff1;
Line 118... Line 119...
118
  const char* get_scheme_name () {
119
  const char* get_scheme_name () {
119
    return s_schemes[i];
120
    return s_schemes[i];
120
  }
121
  }
121
};
122
};
122
123
-
 
124
std::ostream& operator<< (std::ostream&, colorer_t&);
-
 
125
std::istream& operator>> (std::istream&, colorer_t&);
-
 
126
-
 
127
123
#endif
128
#endif