SFML community forums

Help => Graphics => Topic started by: Naufr4g0 on November 04, 2011, 12:37:27 pm

Title: Change sf::Shape::Circle color !
Post by: Naufr4g0 on November 04, 2011, 12:37:27 pm
How can I set a different color for a sf::Shape::Circle shape?

circle.SetColor( sf::Color ) doesn't work!
Where is the color information I need?
And for a sf::Shape::Line?

Thanks in advance :)
Title: Change sf::Shape::Circle color !
Post by: Laurent on November 04, 2011, 01:16:05 pm
Don't pass a color when you create the shape (or use white). Then SetColor will work as expected.
Title: Change sf::Shape::Circle color !
Post by: Naufr4g0 on November 04, 2011, 01:32:57 pm
Quote from: "Laurent"
Don't pass a color when you create the shape (or use white). Then SetColor will work as expected.


Thanks very much! Now it works! :)