Java Color Create colorWithIntAndAlpha(int color, int alpha)

Here you can find the source of colorWithIntAndAlpha(int color, int alpha)

Description

color With Int And Alpha

License

Open Source License

Declaration

public static int colorWithIntAndAlpha(int color, int alpha) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int colorWithIntAndAlpha(int color, int alpha) {
        // from: http://processing.org/discourse/beta/num_1261125421.html
        return (color & 0xffffff) | (alpha << 24);
    }/*from w  ww.j a  va  2s  .c o m*/
}

Related

  1. colorFromRGB(int r, int g, int b)
  2. colorFromRGB(int red, int green, int blue)
  3. colorFromRGBA(int red, int green, int blue, int alpha)
  4. colorFromString(String string)
  5. colorWithARGB(int alpha, int red, int green, int blue)
  6. generateBlankImage(int w, int h, Color col)
  7. generateColor(int fc, int bc)
  8. generateColorFromString(String seed)
  9. generateColorModel()