Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 477: | Line 477: | ||
} | } | ||
)]); | )]); | ||
- | + | if(!thisfacecolor) | |
+ | { | ||
+ | alert("something is terribly wrong!"); | ||
+ | } | ||
var newcolor = colorRamp(thisfacecolor, cool_color_ramp); | var newcolor = colorRamp(thisfacecolor, cool_color_ramp); | ||
materials[i][0].color.setRGB(newcolor[0], newcolor[1], newcolor[2]); | materials[i][0].color.setRGB(newcolor[0], newcolor[1], newcolor[2]); |
Revision as of 02:39, 26 September 2011