Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
SFML.Graphics.SFShape
Documentation
class SFShape a where
Methods
setFillColor :: a -> Color -> IO ()
Set the fill color of a shape.
This color is modulated (multiplied) with the shape's texture if any. It can be used to colorize the shape, or change its global opacity.
You can use Transparent
to make the inside of
the shape transparent, and have the outline alone.
By default, the shape's fill color is opaque white.
setOutlineColor :: a -> Color -> IO ()
Set the outline color of a shape.
You can use Transparent
to disable the outline.
By default, the shape's outline color is opaque white.
Set the thickness of a shape's outline.
This number cannot be negative. Using zero disables the outline.
By default, the outline thickness is 0.
getFillColor :: a -> IO Color
Get the fill color of a shape.
getOutlineColor :: a -> IO Color
Get the outline color of a shape.
getOutlineThickness :: a -> IO Float
Get the outline thickness of a shape.
getPointCount :: a -> IO Int
Get the total number of points of a shape.
Arguments
:: a | |
-> Int | Index of the point to get, in range [0 .. |
-> IO Vec2f |
Get the ith point of a shape.
The result is undefined if index is out of the valid range.