Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Color; public class Main { public static int toColor(int r, int g, int b) { return Color.rgb(r, g, b); } }