linear.pde
来自「This is processing for java examples.」· PDE 代码 · 共 27 行
PDE
27 行
/** * Linear Motion. * * Changing a variable to create a moving line. * When the line moves off the edge of the window, * the variable is set to 0, which places the line * back at the bottom of the screen. */ float a = 100;void setup() { size(640, 200); stroke(255);}void draw() { background(51); a = a - 0.5; if (a < 0) { a = height; } line(0, a, width, a); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?