manypdfs.pde
来自「This is processing for java examples.」· PDE 代码 · 共 39 行
PDE
39 行
/** * Many PDFs. * * Saves one PDF file each each frame while the mouse is pressed. * When the mouse is released, the PDF creation stops. */import processing.pdf.*;boolean savePDF = false;void setup() { size(600, 600); frameRate(24);}void draw() { if(savePDF == true) { beginRecord(PDF, "lines" + frameCount + ".pdf"); } background(255); stroke(0, 20); strokeWeight(20.0); line(mouseX, 0, width-mouseY, height); if(savePDF == true) { endRecord(); }}void mousePressed() { savePDF = true;}void mouseReleased() { savePDF = false;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?