h-raylib-4.6.0.3: Raylib bindings for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Raylib.Core.Shapes

Synopsis

Documentation

drawPixel :: Int -> Int -> Color -> IO () Source #

drawLine :: Int -> Int -> Int -> Int -> Color -> IO () Source #

drawCircle :: Int -> Int -> Float -> Color -> IO () Source #

drawEllipse :: Int -> Int -> Float -> Float -> Color -> IO () Source #

drawRing :: Vector2 -> Float -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawRectangle :: Int -> Int -> Int -> Int -> Color -> IO () Source #

drawPoly :: Vector2 -> Int -> Float -> Float -> Color -> IO () Source #

checkCollisionLines :: Vector2 -> Vector2 -> Vector2 -> Vector2 -> Maybe Vector2 Source #

If a collision is found, returns Just collisionPoint, otherwise returns Nothing