Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 397: | Line 397: | ||
function(index) | function(index) | ||
{ | { | ||
+ | alert(index); | ||
var thisdataz = $(this).text().split(','); | var thisdataz = $(this).text().split(','); | ||
var thisdatax = $('.xdata_3d').text().split(','); | var thisdatax = $('.xdata_3d').text().split(','); | ||
Line 476: | Line 477: | ||
} | } | ||
)]); | )]); | ||
+ | alert(thisfacecolor); | ||
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]); | ||
data_3d[index].faces[i].materials = materials[i]; | data_3d[index].faces[i].materials = materials[i]; | ||
} | } | ||
- | |||
} | } |
Revision as of 02:18, 26 September 2011