首页 > 文档 > height高度
2017
07-03

height高度

9.height

Name名称):height //高度

Examples例子):

noStroke();

background(0);

rect(40, 0, 20, height);

rect(60, 0, 20, height/2);

 

 

Description描述):System variable that stores the height of the display window. This value is set by the second parameter of the size() function. For example, the function call size(320, 240) sets the height variable to the value 240. The value of height defaults to 100 if size() is not used in a program.

存储显示窗口高度的系统变量。这个值由size()函数的第二个参数设置。例如,函数调用大小(320,240)将高度变量设置为240。如果在程序中不使用size(),则高度默认值为100。

Related相关函数):width
size()

 

 



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

留下一个回复

你的email不会被公开。