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