Exemple #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));
    }
Exemple #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();
    }
Exemple #3
0
 public void changeCamColor() {
   cam.changeToColor(color(100, 100, 100));
 }