Java Color Create generateGreyColor(double value, double minValue, double maxValue)

Here you can find the source of generateGreyColor(double value, double minValue, double maxValue)

Description

generate Grey Color

License

Open Source License

Declaration

public static Color generateGreyColor(double value, double minValue, double maxValue) 

Method Source Code


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

import java.awt.Color;

public class Main {
    public static Color generateGreyColor(double value, double minValue, double maxValue) {
        int colorValue = (int) ((value + 1.0D) / 2.0D * 245.0D + 10.0D);
        colorValue = 255 - colorValue;//from ww  w . j  a va 2  s . c  o  m
        return new Color(colorValue, colorValue, colorValue);
    }
}

Related

  1. generateColorModel()
  2. generateColorRamp(int n)
  3. generateColourSet(Color[] palette, int numColorBands)
  4. generateFireMapColor(double min, double max, double value)
  5. generateGrayScaleColor(double min, double max, double value)
  6. generateHexolor(Color color)
  7. generateNColors(int numColors)
  8. generateNextValidColor()
  9. generatePallete(final int colours)