An example of what I mean would be:
Color maroon = #800000;
Color red = #ff0000;
if (red <resembles> maroon) //which would return true because they're both red colors.{
//...
} else {
System.out.println("The colors did not resemble.");
}
Would this be possible and if so then how would I go about doing this?
Aucun commentaire:
Enregistrer un commentaire