public void changeCamColorPrev() { // keep the same color, just change opacity int c = cam.getColor(); int r = (c >> 16) & 255; int g = (c >> 8) & 255; int b = c & 255; cam.changeToColor(color(r, g, b, 40)); }
public void changeCamColorNext() { // keep the same color, just change opacity int c = cam.getColor(); int r = (c >> 16) & 255; int g = (c >> 8) & 255; int b = c & 255; cam.changeToColor(color(r, g, b)); cam.setNextShapeActive(); }
public void changeCamColor() { cam.changeToColor(color(100, 100, 100)); }