⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doublerandom.pde

📁 This is processing for java examples.
💻 PDE
字号:
/** * Double Random  * by Ira Greenberg.   *  * Using two random() calls and the point() function  * to create an irregular sawtooth line. */size(200, 200);background(0);int totalPts = 300;float steps = totalPts + 1;stroke(255);float rand = 0;for  (int i = 1; i < steps; i++){  point( (width/steps) * i, (height/2) + random(-rand, rand) );  rand += random(-5, 5);}

⌨️ 快捷键说明

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