Java Color Create colorFromRGB(int r, int g, int b)

Here you can find the source of colorFromRGB(int r, int g, int b)

Description

color From RGB

License

LGPL

Declaration

public static int colorFromRGB(int r, int g, int b) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static int colorFromRGB(int r, int g, int b) {
        return (r * 65536) + (g * 256) + b;
    }//from ww w.j a  va  2s  . co  m
}

Related

  1. color(String color, Object value)
  2. color(String msg)
  3. color(String msg)
  4. color(String s)
  5. color(String s)
  6. colorFromRGB(int red, int green, int blue)
  7. colorFromRGBA(int red, int green, int blue, int alpha)
  8. colorFromString(String string)
  9. colorWithARGB(int alpha, int red, int green, int blue)