Skip to content

Instantly share code, notes, and snippets.

@jorgenys
jorgenys / sketch_hires.pde
Created November 5, 2016 15:06
High resolution rendering with Processing, Part 1
PGraphics render;
int printWidth = 10;
int printHeight = 6;
int printDpi = 300;
int renderWidth = printWidth * printDpi;
int renderHeight = printHeight * printDpi;
void setup() {
@jorgenys
jorgenys / sketch_hires_lores.pde
Last active December 13, 2020 19:11
High resolution rendering with Processing, Part 2
PGraphics render;
int printWidth = 10;
int printHeight = 6;
int printDpi = 300;
int previewDpi = 72;
boolean renderHighRes = false;
boolean firstFrame = true;