public NamedColor(String name,int r,int g,int b){
  super(r,g,b);
  if (name == null) {
    name="";
  }
  this.name=name;
  names=new HashSet<>();
  names.add(name);
  namesLowercase=new HashSet<>();
  namesLowercase.add(name.toLowerCase());
}

public NamedColor ( String name , int r , int g , int b ) { super ( r , g , b ) ; if ( name == null ) { name = "" ; } this . name = name ; names = new HashSet < > ( ) ; names . add ( name ) ; namesLowercase = new HashSet < > ( ) ; namesLowercase . add ( name . toLowerCase ( ) ) ; }
constructs a new color with the given name and rgb values .
