/ This is Processing Code import processing.serial.*; Serial myPort; int k=255; color c; void setup(){ size(255,255); myPort = new Serial(this, Serial.list()[0], 9600); colorMode(HSB); for(int j=0;j<256;j++) for(int i=0;i<256;i++) { stroke(i,j,k); point(i,255-j); } fill(255); stroke(0); rect(255,0,10,255); line(255,127,265,127); } void draw(){ c= get(mouseX,mouseY); int Red= int(map(red(c),0,255,0,84)); int Green=int(map(green(c),0,255,85,179)); int Blue=int(map(blue(c),0,255,180,255)); myPort.write(Red); myPort.write(Green); myPort.write(Blue); println(Red); println(Green); println(Blue); }