FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

curveTightness()

   
Examples  
// White curve 
stroke(255); 
beginShape(LINE_STRIP); 
curveVertex(10, 26); 
curveVertex(10, 26); 
curveVertex(83, 24); 
curveVertex(83, 61); 
curveVertex(25, 65); 
curveVertex(25, 65); 
endShape(); 
 
// Gray curve 
stroke(126); 
curveTightness(3.5); 
beginShape(LINE_STRIP); 
curveVertex(10, 26); 
curveVertex(10, 26); 
curveVertex(83, 24); 
curveVertex(83, 61); 
curveVertex(25, 65); 
curveVertex(25, 65); 
endShape(); 
 
// Black curve 
stroke(0); 
curveTightness(-2.5); 
beginShape(LINE_STRIP); 
curveVertex(10, 26); 
curveVertex(10, 26); 
curveVertex(83, 24); 
curveVertex(83, 61); 
curveVertex(25, 65); 
curveVertex(25, 65); 
endShape(); 
Description   Modifies the quality of forms created with curve() and curveVertex(). The parameter squishy determines how the curve fits to the vertex points. The value 0.0 is the default value for squishy (this value defines the curves to be Catmull-Rom splines) and the value 1.0 connects all the points with straight lines. Values within the range -5.0 and 5.0 will deform the curves but will leave them recognizable and as values increase in magnitude, they will continue to deform.
   
Syntax  
curveTightness(squishy)
   
Parameters  
squishy   float or int: amount of deformation from the original vertices

   
Returns   None
   
Usage   Web & Application
   
Related   curve()
curveVertex()
 
 






   
 
Updated: Fri Jul 15 16:35:36 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info