Modeling2.html

From 2013.igem.org

(Difference between revisions)
Line 199: Line 199:
     strokeWeight(2);
     strokeWeight(2);
-
    for (var kk = -1; kk < t.length; kk++){
+
  for (var kk = -1; kk < t.length; kk++){
         point2X = (t[kk] - xMin)*(graphWidth/xLength) +    graphxMin;
         point2X = (t[kk] - xMin)*(graphWidth/xLength) +    graphxMin;
         point2Y =  - (y[kk] - yMin)*graphHeight/yLength + min;
         point2Y =  - (y[kk] - yMin)*graphHeight/yLength + min;
-
         if (point2X <= graphxMax && point2X >= graphxMin && point2Y <= min && point2Y >= (min - graphWidth) &&  point1X <= graphxMax && point1X >= graphxMin && point1Y < min && point1Y > (min - graphWidth) )
+
          
-
        line(point1X, point1Y, point2X, point2Y);
+
-
 
+
         point1X = point2X;
         point1X = point2X;
         point1Y = point2Y;  }   
         point1Y = point2Y;  }   

Revision as of 22:48, 27 September 2013

iGEM