I am making a timer and i want it to be a specific gray color:
However. the numbers show up with a weird, unsightly white outline:
What can I do? Am I doing something wrong when setting the color?
It's not just gray, any color does this, except white.
1 2 3 4 5 6 7 8 9 10 11 12 | public void update( int timeSpent) { GreenfootImage img = getImage(); img.clear(); Color gray = new Color( 333333 ); img.setColor(gray); img.setFont( new Font( "Times New Roman" , Font.PLAIN, fontSize)); String t = String.valueOf(timeSpent); digitNumber=t.length(); img.drawString(t, ( 834 - 768 )/ 2 -fontSize*(digitNumber)/ 2 , 20 ); } |

