//sketch_ControlP5_ColorWheel import controlP5.*; ControlP5 cp5; int c = color(100); void setup() { size(500,500,P3D); //size(500,500); cp5 = new ControlP5( this ); cp5.addColorWheel("c" , 0 , 0 , 200 ).setRGB(color(128,0,255)); noStroke(); } void draw() { pushMatrix(); lights(); background(255); fill( c ); translate(width / 2, height / 2); rotateY(map(mouseX, 0, width, -PI/1, PI/1)); rotateX(map(mouseY, 0, height, PI/1, -PI/1)); box(50,50,100); popMatrix(); println(hex(cp5.get(ColorWheel.class,"c").getRGB())); }