multipleframes.pde
来自「This is processing for java examples.」· PDE 代码 · 共 34 行
PDE
34 行
/** * Multiple Frames. * * Saves one PDF document of many frames drawn to the screen. * Starts the file when the mouse is pressed and end the file * when the mouse is released. */import processing.pdf.*;void setup() { size(600, 600); frameRate(24); background(255);}void draw() { stroke(0, 20); strokeWeight(20.0); line(mouseX, 0, width-mouseY, height);}void mousePressed() { beginRecord(PDF, "Lines.pdf"); background(255);}void mouseReleased() { endRecord(); background(255);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?