Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Returns whether the given point is a certain color.
- * Accounts for the variable colors that runescape produces whenever you log in.
- * @param col
- * - Color to check for.
- * @param p
- * - Point to check at.
- * @return
- */
- private static boolean checkColor(Color col, Point p, int tol){
- if(Math.abs(col.getRed() - Colour.getColour(p).getRed()) < tol)
- if(Math.abs(col.getGreen() - Colour.getColour(p).getGreen()) < tol)
- if(Math.abs(col.getBlue() - Colour.getColour(p).getBlue()) < tol)
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement