ColorUtil.java Source code

Java tutorial

Introduction

Here is the source code for ColorUtil.java

Source

import java.awt.*;

public class ColorUtil {
    public static Color makeTransparent(Color source, int alpha) {
        return new Color(source.getRed(), source.getGreen(), source.getBlue(), alpha);
    }

}