All,
I need some help regarding the color class and reading files. I have a text file that lists various colors such as magenta, blue, red, yellow. I can read the file no problem to get the color names. The problem is how do I convert these names to a meaning color to display objects in whatever color I read in from the file? Each color is on a different line in the text file.
So I need something like:
graphics.setColor(Color.fileReadInput);
When I read the color name in from the file it is a String data type.
Any help is greatly appreciated.
Thanks
I need some help regarding the color class and reading files. I have a text file that lists various colors such as magenta, blue, red, yellow. I can read the file no problem to get the color names. The problem is how do I convert these names to a meaning color to display objects in whatever color I read in from the file? Each color is on a different line in the text file.
So I need something like:
graphics.setColor(Color.fileReadInput);
When I read the color name in from the file it is a String data type.
Any help is greatly appreciated.
Thanks