Here you can find the source of explode(int clr)
public static int[] explode(int clr)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] explode(int clr) { int[] explodedColors = new int[4]; for (int i = 0; i < 4; ++i) explodedColors[3 - i] = (clr >>> (i * 8)) & 0xFF; return explodedColors; }/*from w w w.java2s.c om*/ }