Here you can find the source of intToFloatColor(int value)
public static float intToFloatColor(int value)
//package com.java2s; //License from project: Open Source License public class Main { /** Encodes the ABGR int color as a float. The high bits are masked to avoid using floats in the NaN range, which unfortunately * means the full range of alpha cannot be used. See {@link Float#intBitsToFloat(int)} javadocs. */ public static float intToFloatColor(int value) { return Float.intBitsToFloat(value & 0xfeffffff); }//w w w.ja v a 2s . co m public static float intBitsToFloat(int value) { return Float.intBitsToFloat(value); } }