Here you can find the source of clampColorInt(int color)
public static int clampColorInt(int color)
//package com.java2s; //License from project: Open Source License public class Main { public static final int RGB_WHITE = 16_777_215; public static int clampColorInt(int color) { return (color < 0) ? 0 : (color > RGB_WHITE) ? RGB_WHITE : color; }/*from w w w . j a va2 s.co m*/ }