201707-04 for 名称: for 例子: for (int i=0; i<40; i=i+1) { line(30, i, 80, i ); } for (int i=0; i<80; i=i+5) { .... Read More >
201707-04 >= (greater than or equal to)大于等于 名称: >= (大于等于) 例子: int a=23; int b=23; if (a >= b ){ println(“variable a is greater or equal to variable a”) //输出 变量b大于等于变量a } .... Read More >
201707-04 > (greater than)大于 名称: > (大于) 例子: int a=5; int b=13; if (b >a ){ println(“variable b is larger than variable a”) //输出 变量b大于变量a } 描述: 判断左边.... Read More >
201707-04 == (equality)等于 名称: == (等于) 例子: int a=23; int b=23; if (a == b) { pritnln(“variables a and b are equal”); //输出 变量a和b相等 } 描述: 确定两个变量是否相等。等.... Read More >
201707-04 <= (less than or equal to) 名称: <= (小于等于) 例子: int a=22; int b=23; if (a<=b) { println(“variable a is less or equal to variable b”); //输出 变量a小于等于白变量b }  .... Read More >
201707-04 < (less than)小于 名称: < (小于) 例子: int a=22; int b=23; if (a < b) { println(“variable a is less than variable b”) //输出 变量a 比变量b小 } 描述: 判断是否左边的变量小于右.... Read More >
201707-04 != (inequality)不等于 名称:!= (不等于) 例子: int a=22; int b=23; if (a != b) { println(“vatiable a is not equal to variable b”); //输出 变量a不等于变量b } 描述: 确认一个语句是否等于.... Read More >
201707-03 width宽度 18.width Name(名称):width //宽度 Examples(例子): noStroke(); background(0); rect(0, 40, width, 20); rect(0, 60, width/2, 20); Description(描述):System variable that stor.... Read More >
201707-03 smooth()平滑函数 17.smooth() Name(名称):smooth()//平滑函数 Examples(例子): void setup() { size(100, 100); smooth(2); noStroke(); } void draw() { background(0); ellipse(30, 48, 3.... Read More >
201707-03 size()画布尺寸 16.size() Name(名称):size()//画布尺寸 Examples(例子): size(200, 100); background(153); line(0, 0, width, height); Description(描述):Defines the dimension of the display window .... Read More >
201707-03 settings()特殊情况下的设置 15.settings() Name(名称):settings()//特殊情况下的设置 Examples(例子): // Run code at full screen using the default renderer使用默认渲染器在全屏运行代码 int x = 0; void settings() { fullScreen(); .... Read More >
201707-03 pixelWidth高分辨率显示屏像素宽度 13.pixelHeight 14.pixelWidth Name(名称):pixelHeight //高分辨率显示屏像素高度 Examples(例子): size(600, 400); pixelDensity(2); println(width, height); println(pixelWidth, pixelHeight); &.... Read More >
201707-03 pixelHeight高分辨率显示屏像素高度 13.pixelHeight 14.pixelWidth Name(名称):pixelHeight //高分辨率显示屏像素高度 Examples(例子): size(600, 400); pixelDensity(2); println(width, height); println(pixelWidth, pixelHeight); D.... Read More >
201707-03 pixelDensity()高分辨率显示屏启用 pixelDensity() Name(名称):pixelDensity()//高分辨率显示屏启用 Examples(例子): size(100, 100); pixelDensity(2); noStroke(); background(0); ellipse(30, 48, 36, 36); ellipse(70, 48,.... Read More >
201707-03 noSmooth()取消平滑 noSmooth() Name(名称):noSmooth()//取消平滑 Examples(例子): size(100, 100); noSmooth(); noStroke(); background(0); ellipse(30, 48, 36, 36); ellipse(70, 48, 36, 36); .... Read More >
201707-03 noCursor()窗口隐藏鼠标指针 10.noCursor() Name(名称):noCursor()//窗口隐藏鼠标指针 Examples(例子): // Press the mouse to hide the cursor按下鼠标来隐藏光标 void draw() { if (mousePressed == true) { noCursor(); }.... Read More >
201707-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 sto.... Read More >
201707-03 fullScreen()全屏 8.fullScreen() Name(名称):fullScreen()//全屏 Examples(例子): 例子一 // Run the code at the full dimensions of the screen currently在当前的屏幕上运行代码 // selected inside the Preferences window在Pr.... Read More >