Java Color Alpha washColor(int red, int green, int blue, int alpha, int amountToWash)

Here you can find the source of washColor(int red, int green, int blue, int alpha, int amountToWash)

Description

wash Color

License

Open Source License

Declaration

private static Color washColor(int red, int green, int blue, int alpha, int amountToWash) 

Method Source Code

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

import java.awt.*;

public class Main {
    private static Color washColor(int red, int green, int blue, int alpha, int amountToWash) {
        return new Color(red / amountToWash, green / amountToWash, blue / amountToWash, alpha / amountToWash);
    }//  www  . j  a va 2s .  c o  m
}

Related

  1. premultiplyAlpha(Color fgColor, Color bgColor)
  2. setColorAlpha(Color c, int alpha)
  3. setColorAlpha(Color color, int alpha)
  4. transparent(final Color color, final int alpha)
  5. transparentColor(Color color, int alpha)