Java RGB Color Create RGBA(int r, int g, int b, float a)

Here you can find the source of RGBA(int r, int g, int b, float a)

Description

Gets rgba() string from SAC rgba LexicalUnit value

License

Open Source License

Parameter

Parameter Description
colors a parameter

Declaration

public static String RGBA(int r, int g, int b, float a) 

Method Source Code

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

public class Main {
    /**//from  w  ww  . ja v a 2s .c om
     * Gets rgba() string from SAC rgba LexicalUnit value
     * @param colors
     * @return
     */
    public static String RGBA(int r, int g, int b, float a) {
        return String.format("rgba(%s, %s, %s, %s)", r, g, b, a);
    }
}

Related

  1. RGB_GREEN(int rgb)
  2. RGB_MSE(int[] rgb1, int[] rgb2)
  3. RGB_PNSR(int[] rgb1, int[] rgb2)
  4. rgb_xyz(double r)
  5. rgba(double r, double g, double b, double a)
  6. RGBA(int r, int g, int b, int a)
  7. rgba(int red, int green, int blue)
  8. rgba_bilinear_filter(int rgb00, int rgb01, int rgb10, int rgb11, int u, int v)
  9. rgbaColour(int red, int green, int blue, int alpha)