Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

curveTightness()

   
Examples  
// White curve 
stroke(255); 
curve(10, 26, 83, 24, 83, 61, 25, 65); 
 
// Gray curve 
stroke(126); 
curveTightness(3.5); 
curve(10, 26, 83, 24, 83, 61, 25, 65); 
 
// Black curve 
stroke(0); 
curveTightness(-2.5); 
curve(10, 26, 83, 24, 83, 61, 25, 65); 
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()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas