animate-frames-0.0.0

Safe HaskellNone
LanguageHaskell2010

Animate.Frames

Documentation

data Row Source #

Constructors

Row 

data RowStep Source #

Constructors

RowStep 

Fields

data CropImage Source #

Constructors

CropImage 

Fields

Instances

data Tree a Source #

Constructors

Node a (Maybe (Tree a)) (Maybe (Tree a)) 

Instances

Functor Tree Source # 

Methods

fmap :: (a -> b) -> Tree a -> Tree b #

(<$) :: a -> Tree b -> Tree a #

Eq a => Eq (Tree a) Source # 

Methods

(==) :: Tree a -> Tree a -> Bool #

(/=) :: Tree a -> Tree a -> Bool #

Show a => Show (Tree a) Source # 

Methods

showsPrec :: Int -> Tree a -> ShowS #

show :: Tree a -> String #

showList :: [Tree a] -> ShowS #

data Range Source #

Constructors

Range 

Fields

Instances

Eq Range Source # 

Methods

(==) :: Range -> Range -> Bool #

(/=) :: Range -> Range -> Bool #

Show Range Source # 

Methods

showsPrec :: Int -> Range -> ShowS #

show :: Range -> String #

showList :: [Range] -> ShowS #

data HorzNode Source #

Constructors

HorzNode 

data VertNode Source #

Constructors

VertNode 

main :: IO () Source #

textShow :: Show a => a -> Text Source #

sortByIndex :: Ord a => [(a, b)] -> [(a, b)] Source #

pixelFromCropImage Source #

Arguments

:: Map ImageId (Image PixelRGBA8) 
-> (Int, Int)

Offset

-> (Int, Int)

Spritesheet location

-> CropImage 
-> Maybe PixelRGBA8 

mkRows :: (Int, Int) -> [CropImage] -> [Row] Source #

listToTree :: [a] -> Tree a Source #

cropAnimationsToLayoutAnimations Source #

Arguments

:: Int

Frames per seconds

-> Map String [CropFrame]

Crop animations

-> Map String [(FrameIndex, Seconds)] 

findByElem :: Eq a => Map k a -> a -> Maybe k Source #

cropImageDim :: ((Int, Int), (Int, Int)) -> (Int, Int) Source #

topDown :: Image a -> [(Int, Int)] Source #

downTop :: Image a -> [(Int, Int)] Source #

leftRight :: Image a -> [(Int, Int)] Source #

rightLeft :: Image a -> [(Int, Int)] Source #