yampa-sdl2-0.1.0.2: Yampa and SDL2 made easy

Safe HaskellNone
LanguageHaskell2010

YampaSDL2.Drawable.Rectangle

Synopsis

Documentation

rectangle Source #

Arguments

:: Center

center of the rectangle

-> V2 Double

size

-> ShapeColour

colour

-> Int

zIndex

-> RenderObject 

Draw a rectangle

Example:

rectangle (V2 0 0) (V2 100 200) (Filled blue) 3