Name |
strokeCap()描边帽 |
||||||
Examples |
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 |
|
||||||
Returns |
void |
||||||
Related |
stroke() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/strokecap描边帽/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表