X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FColorUtils.java;h=3eb080b0e126c8cdcfa486f4078ff802203da659;hb=732b23aab5c88efbd8ca24db9e432345492ed9b1;hp=a2d8d3efb13488796b17fa5eafe61276f9a2c81b;hpb=f5974107dd25f8122ebb924e400335e62b1e5daf;p=jalview.git diff --git a/src/jalview/util/ColorUtils.java b/src/jalview/util/ColorUtils.java index a2d8d3e..3eb080b 100644 --- a/src/jalview/util/ColorUtils.java +++ b/src/jalview/util/ColorUtils.java @@ -199,42 +199,6 @@ public class ColorUtils } } - public static int bleachColourInt(int colour, float bleachFactor) - { - if (bleachFactor >= 1f) - { - return -1;// Color.WHITE; - } - if (bleachFactor <= -1f) - { - return 0xFF000000;// Color.BLACK; - } - if (bleachFactor == 0f) - { - return colour; - } - - int red = (colour >> 16) & 0xFF;// getRed(); - int green = (colour >> 8) & 0xFF;// colour.getGreen(); - int blue = colour & 0xFF;// .getBlue(); - - if (bleachFactor > 0) - { - red += (255 - red) * bleachFactor; - green += (255 - green) * bleachFactor; - blue += (255 - blue) * bleachFactor; - } - else - { - float factor = 1 + bleachFactor; - red *= factor; - green *= factor; - blue *= factor; - } - return 0xFF000000 | (red << 16) | (green << 8) | blue;// new Color(red, - // green, blue); - } - /** * Parses a string into a Color, where the accepted formats are *