Java AWT Color make color darker

Description

Java AWT Color make color darker

import java.awt.Color;

public class Main {
  public static void main(String[] args) {
    Color c = Color.WHITE;

    System.out.println(c);//w  ww .  j a v a 2  s . c  o  m

    c = c.darker();
    System.out.println(c);
    
    System.out.println(Color.WHITE.darker());
  }
}



PreviousNext

Related