@@ -0,0 +1,855 @@
+package com.haxademic.core.draw.image;%0A%0Aimport com.haxademic.core.app.P;%0Aimport com.haxademic.core.debug.DebugUtil;%0Aimport com.haxademic.core.draw.filters.shaders.BrightnessFilter;%0A%0Aimport processing.core.PGraphics;%0Aimport processing.event.KeyEvent;%0A%0Apublic class BrightnessBumper %7B%0A%09%0A%09float brightness = 1f;%0A%0A%09public BrightnessBumper() %7B%0A%09%09if(P.p == null) DebugUtil.printErr(%22===========%5Cn Please wait until setup() to init BrightnessBumper %5Cn===========%22);%0A%09%09P.p.registerMethod(%22keyEvent%22, this);%0A%09%7D%0A%09%0A%09public void keyEvent(KeyEvent e) %7B%0A%09%09if(e.getKey() == '-') brightness -= 0.01f;%0A%09%09if(e.getKey() == '=') brightness += 0.01f;%0A%09%09if(e.getKey() == '0') brightness = 1f;%0A%09%7D%0A%09%0A%09public void update(PGraphics pg) %7B%0A%09%09if(brightness == 1f) return;%0A%09%09BrightnessFilter.instance(P.p).setBrightness(brightness);%0A%09%09BrightnessFilter.instance(P.p).applyTo(pg);%0A%09%7D%0A%0A%7D%0A

Add BrightnessBumper keyboard-controlled post-processing helper