Here you can find the source of intToRGB(int color)
public static float[] intToRGB(int color)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] intToRGB(int color) { float[] rgb = new float[3]; long blue = color % 256; color = color / 256;// ww w.java 2 s. c om long green = color % 256; color = color / 256; long red = color % 256; rgb[0] = red / 255F; rgb[1] = green / 255F; rgb[2] = blue / 255F; return rgb; } }