random.pde

来自「This is processing for java examples.」· PDE 代码 · 共 20 行

PDE
20
字号
/** * Random.  *  * Random numbers create the basis of this image.  * Each time the program is loaded the result is different.  */ size(200, 200);smooth();background(0);strokeWeight(10);for(int i = 0; i < width; i++) {  float r = random(255);  float x = random(0, width);  stroke(r, 100);  line(i, 0, x, height);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?