added some colour
This commit is contained in:
parent
97a9b87354
commit
5a24fcf5c7
1 changed files with 6 additions and 6 deletions
|
@ -103,16 +103,16 @@ void PNG::output_file(const char* filename_in) const {
|
|||
const double norm_value = (double)int_array[x + y*width + c*width*height]/max_int[c];
|
||||
switch(c) {
|
||||
case 0: {
|
||||
r = (pow(norm_value, power[c]))*3.5;
|
||||
break;
|
||||
r = (pow(norm_value, power[c]))*3.0;
|
||||
//break;
|
||||
}
|
||||
case 1: {
|
||||
g = (pow(norm_value, power[c]))*3.0;
|
||||
break;
|
||||
g = (pow(norm_value, power[c]*2.0))*3.0;
|
||||
//break;
|
||||
}
|
||||
case 2: {
|
||||
b = (pow(norm_value, power[c]))*3.0;
|
||||
break;
|
||||
b = (pow(norm_value, power[c]*3.0))*3.0;
|
||||
//break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
|
Reference in a new issue