Class ColorPicker


  • public class ColorPicker
    extends java.lang.Object
    Created by Pandemic
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorPicker()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.awt.Color getColorAt​(int x, int y)  
      static ColorPicker getColorPicker()
      Deprecated.
      static boolean isColor​(int x, int y, java.awt.Color color)
      Checks if the color at the provided point matches the color provided
      static boolean isColor​(int x, int y, java.awt.Color color, int discrepancy)
      Checks if the color at the provided point matches the color provided
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorPicker

        public ColorPicker()
    • Method Detail

      • getColorPicker

        @Deprecated
        public static ColorPicker getColorPicker()
        Deprecated.
      • isColor

        public static boolean isColor​(int x,
                                      int y,
                                      java.awt.Color color)
        Checks if the color at the provided point matches the color provided
        Parameters:
        x - The x coordinate
        y - The y coordinate
        color - The color you'd like to match
        Returns:
        True if the color is the same
      • isColor

        public static boolean isColor​(int x,
                                      int y,
                                      java.awt.Color color,
                                      int discrepancy)
        Checks if the color at the provided point matches the color provided
        Parameters:
        x - The x coordinate
        y - The y coordinate
        color - The color you'd like to match
        discrepancy - Available difference in color value
        Returns:
        True if the color is within discrepency
      • getColorAt

        public static java.awt.Color getColorAt​(int x,
                                                int y)