# Two commands make the same.

Hi…

I was looking that these two lines make the same…

``````base.win.setClearColor(Vec4(1,1,1,1))

base.setBackgroundColor(1,1,1)``````

both work, what is the difference.

If you look at the definition of base.setBackgroundColor() (in direct/src/showbase/ShowBase.py), you’ll see something like this:

``````    def setBackgroundColor(self, r, g, b, a = 0):
base.win.setClearColor(VBase4(r, g, b, a))``````

(It’s actually a bit more than that, but it’s just to deal with a variety of different inputs.)

So, the answer is, they’re exactly the same.

David

all right, thanks!