ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/falsecolor.pl
(Generate patch)

Comparing ray/src/px/falsecolor.pl (file contents):
Revision 2.8 by greg, Thu Apr 26 21:03:58 2012 UTC vs.
Revision 2.9 by greg, Thu Apr 4 02:59:20 2013 UTC

# Line 6 | Line 6 | use strict;
6   use File::Temp qw/ tempdir /;
7   use POSIX qw/ floor /;
8  
9 < my @palettes = ('def', 'spec', 'pm3d', 'hot');
9 > my @palettes = ('def', 'spec', 'pm3d', 'hot', 'eco');
10  
11   my $mult = 179.0;              # Multiplier. Default W/sr/m2 -> cd/m2
12   my $label = 'cd/m2';           # Units shown in legend
# Line 37 | Line 37 | while ($#ARGV >= 0) {
37          $legheight = shift;
38      } elsif (m/-m/) {          # Multiplier
39          $mult = shift;
40 +    } elsif (m/-spec/) {
41 +        die("depricated option '-spec'. Please use '-pal spec' instead.");
42      } elsif (m/-s/) {          # Scale
43          $scale = shift;
44          if ($scale =~ m/[aA].*/) {
# Line 149 | Line 151 | pm3d_blu(x) = clip(sin(2*PI*clip(x))) ^ gamma;
151   hot_red(x) = clip(3*x) ^ gamma;
152   hot_grn(x) = clip(3*x - 1) ^ gamma;
153   hot_blu(x) = clip(3*x - 2) ^ gamma;
154 +
155 + eco_red(x) = clip(2*x) ^ gamma;
156 + eco_grn(x) = clip(2*(x-0.5)) ^ gamma;
157 + eco_blu(x) = clip(2*(0.5-x)) ^ gamma;
158  
159   interp_arr2(i,x,f):(i+1-x)*f(i)+(x-i)*f(i+1);
160   interp_arr(x,f):if(x-1,if(f(0)-x,interp_arr2(floor(x),x,f),f(f(0))),f(1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines