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

Safe HaskellSafe
LanguageHaskell2010

SDL.Compositor.Drawer

Synopsis

Documentation

class Drawer d where Source

newtype Color Source

Represents the value of color.

Constructors

Color 

Fields

unColor :: V4 Word8
 

rgba :: Word8 -> Word8 -> Word8 -> Word8 -> Color Source

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

colorToVector :: Color -> V4 Word8 Source

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