SFML community forums
Help => Graphics => Topic started by: kim366 on November 25, 2016, 05:22:32 pm
-
Let's say we have an
sf::CircleShape c(10)
If we now set c.setOutlineThickness(5)
is the Radius of the Circle 10 or 15?
Thanks, Kim
-
It's outside, so 15 for anyone looking for the answer.
-
Negative outline value works too, by the way.
-
The radius of the circle would still be 10 but the radius of the outer rim of the outline would be 15.
If you use a negative value (as suggested by FRex) of -5 (instead of positive 5), the radius of the circle would effectively now be 5 and the radius of the outer rim of the outline would be 10.