curveDetail()

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

curveDetail()

示例


void setup()
{  
size(100, 100, P3D);


noFill();


noLoop();


  } 
void draw()
{  
curveDetail(1);


drawCurves(-15);


stroke(126);


curveDetail(2);


drawCurves(0);


stroke(255);


curveDetail(4);


drawCurves(15);


  } 
void drawCurves(float y)
{  
curve( 5, 28+y,  5, 28+y, 73, 26+y, 73, 63+y);


curve( 5, 28+y, 73, 26+y, 73, 63+y, 15, 67+y);


 curve(73, 26+y, 73, 63+y, 15, 67+y, 15, 67+y);


  }  
描述 Sets the resolution at which curves display. The default value is 20. This function is only useful when using the P3D renderer as the default P2D renderer does not use this information.
语法
curveDetail(detail)
参数
detail int: resolution of the curves
返回值 void
相关 curve()
curveVertex()
curveTightness()

Updated on October 2, 2018 05:02:08pm EDT

curveDetail()