首页 > 文档 > strokeJoin()描边接头
2017
08-01

strokeJoin()描边接头

Name

strokeJoin()描边接头

   

Examples

strokeJoin()描边接头 - 第1张  | Processing编程艺术strokeJoin()描边接头 - 第2张  | Processing编程艺术strokeJoin()描边接头 - 第3张  | Processing编程艺术

noFill();

strokeWeight(10.0);

strokeJoin(MITER);

beginShape();

vertex(35, 20);

vertex(65, 50);

vertex(35, 80);

endShape();

strokeJoin()描边接头 - 第4张  | Processing编程艺术strokeJoin()描边接头 - 第5张  | Processing编程艺术strokeJoin()描边接头 - 第6张  | Processing编程艺术

noFill();

strokeWeight(10.0);

strokeJoin(BEVEL);

beginShape();

vertex(35, 20);

vertex(65, 50);

vertex(35, 80);

endShape();

strokeJoin()描边接头 - 第7张  | Processing编程艺术strokeJoin()描边接头 - 第8张  | Processing编程艺术strokeJoin()描边接头 - 第9张  | Processing编程艺术

noFill();

strokeWeight(10.0);

strokeJoin(ROUND);

beginShape();

vertex(35, 20);

vertex(65, 50);

vertex(35, 80);

endShape();

Description

Sets the style of the joints which connect line segments. These joints are either mitered, beveled, or rounded and specified with the corresponding parameters MITER, BEVEL, and ROUND. The default joint is MITER.

设置连接线段的接头的样式。这些接头可以是斜、斜面或圆角的, 并用相应的参数斜接、斜面和圆点指定。默认连接是斜接。

Syntax

strokeJoin(join)

Parameters

join

int: either MITER, BEVEL, ROUND

 

整数型:斜接,斜面,圆形

Returns

void

Related

stroke()
strokeWeight()
strokeCap()



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

留下一个回复

你的email不会被公开。