Here you can find the source of toColor(int rgba)
public static Color toColor(int rgba)
//package com.java2s; //License from project: Open Source License import java.awt.Color; public class Main { public static Color toColor(int rgba) { int r = rgba & 0xFF, g = rgba >> 8 & 0xFF, b = rgba >> 16 & 0xFF, a = rgba >> 24 & 0xFF; return new Color(r, g, b, a); }//from ww w .j a v a2s . c om }