Here you can find the source of RGBA(int r, int g, int b, float a)
Parameter | Description |
---|---|
colors | a parameter |
public static String RGBA(int r, int g, int b, float a)
//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); } }