reduce brightness

This commit is contained in:
Manfred Karrer 2016-06-22 19:43:09 +02:00
parent 76e0f95592
commit bcfebb406e

View file

@ -60,7 +60,7 @@ public class PeerInfoIcon extends Group {
int blue = (intValue >> 24) % 256;
Color color = Color.rgb(red, green, blue);
color = color.deriveColor(1, saturation, 1, 1); // reduce saturation
color = color.deriveColor(1, saturation, 0.8, 1); // reduce saturation and brightness
Canvas background = new Canvas(SIZE, SIZE);
GraphicsContext gc = background.getGraphicsContext2D();