From: Tomas Wenström Date: Sun, 11 Aug 2019 10:51:00 +0000 (+0200) Subject: Add console command for saturation X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=53b74d649c2ec536f9fc800013d85ac892aa008c;p=kaka%2Fcakelight.git Add console command for saturation --- diff --git a/src/kaka/cakelight/Console.java b/src/kaka/cakelight/Console.java index 43ebd13..0d45b7f 100644 --- a/src/kaka/cakelight/Console.java +++ b/src/kaka/cakelight/Console.java @@ -52,6 +52,11 @@ public class Console extends Thread { config.gamma = Double.parseDouble(split[1]); System.out.println("setting gamma to " + config.gamma); break; + } else if (input.matches("s|saturation\\s+[0-9.]+")) { + String[] split = input.split("\\s+"); + config.video.saturation = Double.parseDouble(split[1]); + System.out.println("setting saturation to " + config.video.saturation); + break; } } catch (IOException e) { System.out.println("Error reading from command line");