Fixed exceptions and color selection

This commit is contained in:
Ziver Koc 2023-10-04 23:32:24 +02:00
parent 54a9fcedf8
commit 8a5267b0f8
6 changed files with 1974 additions and 11 deletions

View file

@ -24,9 +24,7 @@ package se.hal.struct.devicedata;
import se.hal.intf.HalEventData;
import zutil.ColorUtil;
import zutil.converter.Converter;
import java.awt.*;
import java.awt.color.ColorSpace;
/**
@ -96,10 +94,6 @@ public class ColorEventData extends HalEventData {
return ColorUtil.getLightness(red, green, blue);
}
public float[] getCieXYZ() {
return cieXYZ.fromRGB(new float[]{red, green, blue});
}
public String getHex() {
return ColorUtil.getHexString(red, green, blue);
}