endShape()

本参考资料用于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.

名称

endShape()

示例
 noFill();

beginShape();

vertex(20, 20);

vertex(45, 20);

vertex(45, 80);

endShape(CLOSE);

beginShape();

vertex(50, 20);

vertex(75, 20);

vertex(75, 80);

endShape();

描述 The endShape() function is the companion to beginShape() and may only be called after beginShape(). When endshape() is called, all of image data defined since the previous call to beginShape() is written into the image buffer. The constant CLOSE as the value for the MODE parameter to close the shape (to connect the beginning and the end).
语法
endShape() endShape(mode)
参数
mode int: use CLOSE to close the shape
返回值 void
相关 PShape
beginShape()

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

endShape()