首页 > 文档 > strokeWeight()线重
2017
08-01

strokeWeight()线重

Name

strokeWeight()线重

   

Examples

strokeWeight()线重 - 第1张  | Processing编程艺术strokeWeight()线重 - 第2张  | Processing编程艺术strokeWeight()线重 - 第3张  | Processing编程艺术

strokeWeight(1); // Default

line(20, 20, 80, 20);

strokeWeight(4); // Thicker

line(20, 40, 80, 40);

strokeWeight(10); // Beastly

line(20, 70, 80, 70);

Description

Sets the width of the stroke used for lines, points, and the border around shapes. All widths are set in units of pixels.

设置用于线条、点和形状周围的边框的描边宽度。所有宽度都以像素单位设置。

Syntax

strokeWeight(weight)

Parameters

weight

float: the weight (in pixels) of the stroke

浮点值:描边的粗细(以像素为单位)

Returns

void

Related

stroke()
strokeJoin()
strokeCap()



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

留下一个回复

你的email不会被公开。