SFML community forums

Help => Graphics => Topic started by: Aiden_Cohen on April 26, 2018, 12:21:42 am

Title: getting color for rectangle shape
Post by: Aiden_Cohen on April 26, 2018, 12:21:42 am
I would like to access the color of a rectangle shape I'm drawing but I don't see anything in the api docs that does that, so how would I do this.
Title: Re: getting color for rectangle shape
Post by: AlejandroCoria on April 26, 2018, 01:44:03 am
sf::Shape::getFillColor (https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Shape.php#ad7f7fe601a8bb24efe9aa77809a35c12) and sf::Shape::getOutlineColor (https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Shape.php#a4fa7d3bf5ee2332f6b9d9bebe9b1e2fd).