首页 > 文档 > strokeCap()描边帽
2017
08-01

strokeCap()描边帽

Name

strokeCap()描边帽

   

Examples

strokeCap()描边帽 - 第1张  | Processing编程艺术strokeCap()描边帽 - 第2张  | Processing编程艺术strokeCap()描边帽 - 第3张  | Processing编程艺术

strokeWeight(12.0);

strokeCap(ROUND);

line(20, 30, 80, 30);

strokeCap(SQUARE);

line(20, 50, 80, 50);

strokeCap(PROJECT);

line(20, 70, 80, 70);

Description

Sets the style for rendering line endings. These ends are either squared, extended, or rounded, each of which specified with the corresponding parameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.

设置呈现行尾的样式。这些端点要么是平方、扩展, 要么是圆角, 每个都用相应的参数指定: 正方形、扩展的和圆形。默认设置为圆。

Syntax

strokeCap(cap)

Parameters

cap

int: either SQUARE, PROJECT, or ROUND

 

整数型:方的,扩展的或者圆形的

   

Returns

void

Related

stroke()
strokeWeight()
strokeJoin()
size()



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

留下一个回复

你的email不会被公开。