Team:Chiba
From 2010.igem.org
(Difference between revisions)
Line 193: | Line 193: | ||
function rainbow(text){ | function rainbow(text){ | ||
text=text.substring(3,text.length-4); | text=text.substring(3,text.length-4); | ||
- | color_d1= | + | color_d1=255; |
mul=color_d1/text.length; | mul=color_d1/text.length; | ||
for(i=0;i < text.length;i++){ | for(i=0;i < text.length;i++){ | ||
- | color_d1= | + | color_d1=255*Math.sin(i/(text.length/3)); "255*Math.sin(i/(text.length/3))" |
color_h1=ToHex(color_d1); | color_h1=ToHex(color_d1); | ||
color_d2=mul*i; | color_d2=mul*i; |
Revision as of 11:02, 23 October 2010
|