Firstly, I've been toying around with PGraphics because of the paint program I'm doing. It works fine in the sense that the image that is saved doesn't show the color palette or controlP5 buttons, but if you use the eraser button that I made it changes the color of the line to a color that's almost the background color, but not the actual background color. I don't know what causes this because the background and the fill of the line are the same numbers in the actual code.
Second, whenever I start to color in and drag the mouse over the color palette the line draws over the colors, instead of changing the fill like its supposed to.
Here's the code
import controlP5.*;
PGraphics canvas;
ControlWindow controlWindow;
ControlP5 controlP5;
int theValue;
int QQ;
float myNumber;
int cols=10;
int rows=2;
color f1 = color(0);
color f2 = color(200);
boolean over = false;
Cell[][] palette = new Cell[cols][rows];
color[] rectCol = new color[20];
void setup() {
size(800,800);
canvas = createGraphics(800,800,JAVA2D);
canvas.beginDraw();
canvas.smooth();
canvas.endDraw();
controlP5 = new ControlP5(this);
Controller New = controlP5.addButton("New",0,0,0,40,19);
Controller Save = controlP5.addButton("Save",0,0,181,40,19);
Using the colorpicker from controlP5 I made my paint program able to choose the colors of the ellipse that you are drawing with, but I can't seem to get it into the control window and whenever I put in cp.setWindow(controlWindow); it tells me that setWindow() isn't a function. Does anyone know how to solve this problem? Thanks in advance.
My controlp5 stopped working a few days ago when I downloaded the newest version of Processing. I need to know how to manually install libraries now, like where the path would be. Also, I'm on a mac so that might not help the situation.