@@ -0,0 +1,1320 @@
+package com.haxademic.demo.draw.color;%0A%0Aimport com.haxademic.core.app.PAppletHax;%0Aimport com.haxademic.core.app.config.AppSettings;%0Aimport com.haxademic.core.draw.color.Gradients;%0A%0Apublic class Demo_GradientSlidersRGB%0Aextends PAppletHax %7B%0A%09public static void main(String args%5B%5D) %7B PAppletHax.main(Thread.currentThread().getStackTrace()%5B1%5D.getClassName()); %7D%0A%09%0A%09protected String COLOR_1 = %22COLOR_1%22;%0A%09protected String COLOR_2 = %22COLOR_2%22;%0A%09protected String COLOR_3 = %22COLOR_3%22;%0A%09%0A%09protected void overridePropsFile() %7B%0A%09%09p.appConfig.setProperty(AppSettings.INIT_ESS_AUDIO, false );%0A%09%7D%0A%0A%09public void setupFirstFrame() %7B%0A%09%09p.ui.addSliderVector(COLOR_1, 0, 0, 255, 1, false);%0A%09%09p.ui.addSliderVector(COLOR_2, 0, 0, 255, 1, false);%0A%09%09p.ui.addSliderVector(COLOR_3, 0, 0, 255, 1, false);%0A%09%7D%0A%09%0A%09public void drawApp() %7B%0A%09%09background(0);%0A%09%09%0A%09%09int color1 = p.color(p.ui.valueX(COLOR_1), p.ui.valueY(COLOR_1), p.ui.valueZ(COLOR_1));%0A%09%09int color2 = p.color(p.ui.valueX(COLOR_2), p.ui.valueY(COLOR_2), p.ui.valueZ(COLOR_2));%0A%09%09int color3 = p.color(p.ui.valueX(COLOR_3), p.ui.valueY(COLOR_3), p.ui.valueZ(COLOR_3));%0A%09%09%0A%09%09p.g.translate(p.width * 0.25f, p.height / 2);%0A%09%09Gradients.linear(p.g, p.width/2f, p.height, color1, color2);%0A%09%09p.g.translate(p.width * 0.5f, 0);%0A%09%09Gradients.linear(p.g, p.width/2f, p.height, color2, color3);%0A%09%7D%0A%09%0A%7D%0A%0A

Add gradient sliders demo