Slick2d Default background color.

When the window turns on, it’s naturally black.
I need it to be white.

I googled it and nothing came up, so I’m wondering if it’s possible.
Is it? lol

You can’t do so with Slick2D. However there is a method in LWJGL’s Display method: Display.setInitialBackground(float red, float green, float blue) where each value is between 0 and 1. I’m sure you can call this after creating your AppGameContainer and before calling start().

What did you google? Something retarded?

anyway here look at this:
http://slick.cokeandcode.com/javadoc/org/newdawn/slick/Graphics.html

The graphics object has heaps of stuff and there is a setBackground method.

That was fairly useless and obvious information.

ra4king answered the question though…thanks.

That’s because it was a question with a fairly obvious answer.

Don’t be a dick. He was asking a legitimate question, and you had to insult him by saying “What did you google, something retarded?”. If you don’t have something positive to add to the discussion, then please leave.

-Nathan

+1 StonePickaxes

@jammas615
We don’t tolerate impatient folks like you. Please better your attitude or leave.