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

📄 noise1d.pde

📁 This is processing for java examples.
💻 PDE
字号:
/** * Noise1D.  *  * Using 1D Perlin Noise to assign location.  */ float xoff = 0.0;float xincrement = 0.01; void setup() {  size(200,200);  background(0);  frameRate(30);  smooth();  noStroke();}void draw(){  // Create an alpha blended background  fill(0, 10);  rect(0,0,width,height);    //float n = random(0,width);  // Try this line instead of noise    // Get a noise value based on xoff and scale it according to the window's width  float n = noise(xoff)*width;    // With each cycle, increment xoff  xoff += xincrement;    // Draw the ellipse at the value produced by perlin noise  fill(200);  ellipse(n,height/2,16,16);}

⌨️ 快捷键说明

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