Here you can find the source of intToBlue(int color)
public static float intToBlue(int color)
//package com.java2s; //License from project: Open Source License public class Main { public static float intToBlue(int color) { int blue = color & 0xff; return ((float) blue) / 255; }//from ww w .ja v a 2 s.c o m }