From 5a24fcf5c7375a146cf7dc961d79ab1c82fa2732 Mon Sep 17 00:00:00 2001 From: "Joshua Moerman (joshua-desktop)" Date: Sun, 24 Apr 2011 15:20:10 +0200 Subject: [PATCH] added some colour --- canvae/PNG.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/canvae/PNG.cpp b/canvae/PNG.cpp index 759c03d..e4a372d 100644 --- a/canvae/PNG.cpp +++ b/canvae/PNG.cpp @@ -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;