strokeCap()

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

名称

strokeCap()

示例
 strokeWeight(12.0);

strokeCap(ROUND);

line(20, 30, 80, 30);

strokeCap(SQUARE);

line(20, 50, 80, 50);

strokeCap(PROJECT);

line(20, 70, 80, 70);

描述 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.
语法
strokeCap(cap)
参数
cap int: either SQUARE, PROJECT, or ROUND
返回值 void
相关 stroke()
strokeWeight()
strokeJoin()
size()

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

strokeCap()