nanovg-0.8.1.0: Haskell bindings for nanovg
Safe HaskellNone
LanguageHaskell2010

NanoVG.Internal.Style

Synopsis

Documentation

strokeColor :: Context -> Color -> IO () Source #

Sets current stroke style to a solid color.

strokePaint :: Context -> Paint -> IO () Source #

Sets current stroke style to a paint, which can be a one of the gradients or a pattern.

fillColor :: Context -> Color -> IO () Source #

Sets current fill style to a solid color.

fillPaint :: Context -> Paint -> IO () Source #

Sets current fill style to a paint, which can be a one of the gradients or a pattern.

miterLimit :: Context -> CFloat -> IO () Source #

Sets the miter limit of the stroke style. Miter limit controls when a sharp corner is beveled.

strokeWidth :: Context -> CFloat -> IO () Source #

Sets the stroke width of the stroke style.

lineCap :: Context -> LineCap -> IO () Source #

Sets how the end of the line (cap) is drawn, Can be one of: Butt (default), Round, Square.

lineJoin :: Context -> LineCap -> IO () Source #

Sets how sharp path corners are drawn. Can be one of Miter (default), Round, 'Bevel.

globalAlpha :: Context -> CFloat -> IO () Source #

Sets the transparency applied to all rendered shapes. Already transparent paths will get proportionally more transparent as well.