Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
m
Line 77: Line 77:
function listGrowth()
function listGrowth()
{
{
 +
/*DEBUG*/
 +
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"G"+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>";
 +
/*DEBUG*/
   subLhght_Cur[sublists_Cur] = subLhght_Cur[sublists_Cur] * 0.7 + subLhght[sublists_Cur] * 1.2 * 0.3;
   subLhght_Cur[sublists_Cur] = subLhght_Cur[sublists_Cur] * 0.7 + subLhght[sublists_Cur] * 1.2 * 0.3;
   if (subLhght_Cur[sublists_Cur]>=subLhght[sublists_Cur])
   if (subLhght_Cur[sublists_Cur]>=subLhght[sublists_Cur])
Line 91: Line 94:
function listWither(i)
function listWither(i)
{
{
-
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+'<br/>'+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2];
+
/*DEBUG*/
 +
document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+"W"+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2]+"<br>";
 +
/*DEBUG*/
   subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5;
   subLhght_Cur[i] = subLhght_Cur[i] * 0.7 - 0.5;
   if (subLhght_Cur[i]<=0)
   if (subLhght_Cur[i]<=0)
Line 136: Line 141:
/*DEBUG*/
/*DEBUG*/
listTrigger(sublists_Now);
listTrigger(sublists_Now);
-
  document.getElementById('console').innerHTML=document.getElementById('console').innerHTML+'<br/>'+sublists_Cur+' '+sublists_Now+' '+subLhand_Growth+' '+subLhand_Return+' '+subLhand_Wither[0]+' '+subLhand_Wither[1]+' '+subLhand_Wither[2];
 
</script>
</script>
</html>
</html>

Revision as of 09:58, 14 September 2012