Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: TypeError-sfml.grahpics.Color.BLUE not callable  (Read 5163 times)

0 Members and 1 Guest are viewing this topic.

grim

  • Guest
TypeError-sfml.grahpics.Color.BLUE not callable
« on: August 28, 2014, 10:49:39 pm »
import sfml as sf
some code....
blankScreen.fill_color(sf.graphics.Color.BLUE)

This code generates this error. I thought maybe I was calling the color wrong but some of the changes I made returned the same error or just said it didn't exist. What am I doing wrong, how do I get my BLUE on?

grim

  • Guest
Re: TypeError-sfml.grahpics.Color.BLUE not callable
« Reply #1 on: August 29, 2014, 06:12:43 am »
Nevermind I figured it out. Wasn't paying attention, but second time reading api I realized that fill_color was an attribute not a method.

 

anything