diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 16:14:36 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 16:14:36 +0100 |
commit | 6fff51c5b04e1d22031d57739d97ec24e73e3b50 (patch) | |
tree | 0f76a6db1ceafbff5f6b43fa4059b25c5b3409a1 | |
parent | Update NEWS (diff) | |
download | redshift-ng-6fff51c5b04e1d22031d57739d97ec24e73e3b50.tar.gz redshift-ng-6fff51c5b04e1d22031d57739d97ec24e73e3b50.tar.bz2 redshift-ng-6fff51c5b04e1d22031d57739d97ec24e73e3b50.tar.xz |
Rescale blackbody values above 6500K to be in [0,1].
-rw-r--r-- | colortemp.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/colortemp.c b/colortemp.c index d904e59..a0bb2a0 100644 --- a/colortemp.c +++ b/colortemp.c @@ -85,41 +85,41 @@ static const float blackbody_color[] = { 1.0000, 0.9798, 0.9524, 1.0000, 0.9900, 0.9763, 1.0000, 1.0000, 1.0000, /* 6500K */ - 0.9917, 1.0014, 1.0149, - 0.9696, 0.9885, 1.0149, - 0.9488, 0.9761, 1.0149, - 0.9290, 0.9642, 1.0149, - 0.9102, 0.9529, 1.0149, - 0.8923, 0.9420, 1.0149, - 0.8753, 0.9316, 1.0149, - 0.8591, 0.9215, 1.0149, - 0.8437, 0.9120, 1.0149, - 0.8289, 0.9028, 1.0149, - 0.8149, 0.8939, 1.0149, - 0.8014, 0.8854, 1.0149, - 0.7885, 0.8772, 1.0149, - 0.7762, 0.8693, 1.0149, - 0.7644, 0.8617, 1.0149, - 0.7531, 0.8543, 1.0149, - 0.7423, 0.8472, 1.0149, - 0.7319, 0.8404, 1.0149, - 0.7219, 0.8338, 1.0149, - 0.7123, 0.8274, 1.0149, - 0.7030, 0.8213, 1.0149, - 0.6941, 0.8152, 1.0149, - 0.6856, 0.8094, 1.0149, - 0.6773, 0.8039, 1.0149, - 0.6693, 0.7984, 1.0149, - 0.6617, 0.7932, 1.0149, - 0.6543, 0.7881, 1.0149, - 0.6471, 0.7832, 1.0149, - 0.6402, 0.7784, 1.0149, - 0.6335, 0.7737, 1.0149, - 0.6271, 0.7692, 1.0149, - 0.6208, 0.7648, 1.0149, - 0.6148, 0.7605, 1.0149, - 0.6089, 0.7564, 1.0149, - 0.6033, 0.7524, 1.0149 /* 10000K */ + 0.9771, 0.9867, 1.0000, + 0.9554, 0.9740, 1.0000, + 0.9349, 0.9618, 1.0000, + 0.9154, 0.9500, 1.0000, + 0.8968, 0.9389, 1.0000, + 0.8792, 0.9282, 1.0000, + 0.8624, 0.9179, 1.0000, + 0.8465, 0.9080, 1.0000, + 0.8313, 0.8986, 1.0000, + 0.8167, 0.8895, 1.0000, + 0.8029, 0.8808, 1.0000, + 0.7896, 0.8724, 1.0000, + 0.7769, 0.8643, 1.0000, + 0.7648, 0.8565, 1.0000, + 0.7532, 0.8490, 1.0000, + 0.7420, 0.8418, 1.0000, + 0.7314, 0.8348, 1.0000, + 0.7212, 0.8281, 1.0000, + 0.7113, 0.8216, 1.0000, + 0.7018, 0.8153, 1.0000, + 0.6927, 0.8092, 1.0000, + 0.6839, 0.8032, 1.0000, + 0.6755, 0.7975, 1.0000, + 0.6674, 0.7921, 1.0000, + 0.6595, 0.7867, 1.0000, + 0.6520, 0.7816, 1.0000, + 0.6447, 0.7765, 1.0000, + 0.6376, 0.7717, 1.0000, + 0.6308, 0.7670, 1.0000, + 0.6242, 0.7623, 1.0000, + 0.6179, 0.7579, 1.0000, + 0.6117, 0.7536, 1.0000, + 0.6058, 0.7493, 1.0000, + 0.6000, 0.7453, 1.0000, + 0.5944, 0.7414, 1.0000 /* 10000K */ }; |