Example #1
0
    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));
    }
Example #2
0
    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();
    }