sdl2-compositor-1.2.0.5: image compositing with sdl2 - declarative style

Safe HaskellSafe
LanguageHaskell2010

SDL.Compositor.Drawer

Synopsis

Documentation

class Drawer d where #

Minimal complete definition

rectangleC, lineC, filledRectangleC

Methods

rectangleC :: V2 Int -> Color -> d #

lineC :: V2 Int -> Color -> d #

filledRectangleC :: V2 Int -> Color -> d #

newtype Color #

Represents the value of color.

Constructors

Color 

Fields

rgba :: Word8 -> Word8 -> Word8 -> Word8 -> Color #

construct a color value from red green blue and alpha values.

colorToVector :: Color -> V4 Word8 #

Convert a color value to vector of numbers that represent the color.