首页 > 文档 > endShape()结束图形
2017
08-01

endShape()结束图形

Name

endShape()结束图形

   

Examples

endShape()结束图形 - 第1张  | Processing编程艺术endShape()结束图形 - 第2张  | Processing编程艺术endShape()结束图形 - 第3张  | Processing编程艺术

noFill();

 

beginShape();

vertex(20, 20);

vertex(45, 20);

vertex(45, 80);

endShape(CLOSE);

 

beginShape();

vertex(50, 20);

vertex(75, 20);

vertex(75, 80);

endShape();

Description

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 () 函数是 beginShape () 的伙伴, 只能在 beginShape () 之后调用。当调用 endshape () , 自上一次调用 beginShape () 以来定义的所有图像数据都写入图像缓冲区。将常数关闭为模式参数的值以关闭形状 (以连接开始和结束)

Syntax

endShape()

endShape(mode)

Parameters

mode

int: use CLOSE to close the shape

使用CLOSE关闭图形

Returns

void

Related

PShape
beginShape()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。