@@ -0,0 +1,855 @@
+package com.haxademic.core.draw.filters.shaders;%0A%0Aimport processing.core.PApplet;%0A%0Apublic class ColorizeTwoColorsFilter%0Aextends BaseFilter %7B%0A%0A%09public static ColorizeTwoColorsFilter instance;%0A%09%0A%09public ColorizeTwoColorsFilter(PApplet p) %7B%0A%09%09super(p, %22shaders/filters/colorize-two-colors.glsl%22);%0A%09%09setColor1(1f, 1f, 1f);%0A%09%09setColor2(0f, 0f, 0f);%0A%09%09setCrossfade(true);%0A%09%7D%0A%09%0A%09public static ColorizeTwoColorsFilter instance(PApplet p) %7B%0A%09%09if(instance != null) return instance;%0A%09%09instance = new ColorizeTwoColorsFilter(p);%0A%09%09return instance;%0A%09%7D%0A%09%0A%09public void setColor1(float r, float g, float b) %7B%0A%09%09shader.set(%22color1%22, r, g, b);%0A%09%7D%0A%09%0A%09public void setColor2(float r, float g, float b) %7B%0A%09%09shader.set(%22color2%22, r, g, b);%0A%09%7D%0A%0A%09public void setCrossfade(boolean crossfade) %7B%0A%09%09float cross = (crossfade == true) ? 1f : 0f;%0A%09%09shader.set(%22crossfade%22, cross);%0A%09%7D%0A%09%0A%7D%0A

Add two color shader effect wrapper