Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Layout | |
|
createCropImagesWithCache :: [(String, [(ImageId, a)])] -> Map ImageId (Image PixelRGBA8) -> IO (Map String [CropImage]) Source #
validAnimationCount :: Options -> Bool Source #
writeCropImage :: Map ImageId (Image PixelRGBA8) -> FilePath -> CropImage -> IO () Source #
generateImageFromCropImage :: Map ImageId (Image PixelRGBA8) -> CropImage -> Image PixelRGBA8 Source #
readImageOrFail :: FilePath -> IO (ImageId, Image PixelRGBA8) Source #
linesOfSpriteSheetInfo :: SpriteSheetInfo a Seconds -> [Text] Source #
spriteClipToText :: Int -> SpriteClip a -> Text Source #
animationToText :: Text -> [(FrameIndex, Seconds)] -> [Text] Source #
spriteClipsFromRows :: [Row] -> [SpriteClip String] Source #
generatePixelFromLayout :: Map ImageId (Image PixelRGBA8) -> Layout -> Int -> Int -> PixelRGBA8 Source #
generateImageFromLayout :: Map ImageId (Image PixelRGBA8) -> Layout -> Image PixelRGBA8 Source #
sortByIndex :: Ord a => [(a, b)] -> [(a, b)] Source #
lookupPixelFromTree :: Map ImageId (Image PixelRGBA8) -> Tree VertNode -> Int -> Int -> Maybe PixelRGBA8 Source #
rowToVertNode :: Row -> VertNode Source #
listToTree :: [a] -> Tree a Source #
insertCropImages :: [CropImage] -> Map CropId CropImage -> (Map CropId CropImage, [CropId]) Source #
insertCropImagesStep :: (Map CropId CropImage, [CropId]) -> CropImage -> (Map CropId CropImage, [CropId]) Source #
collapseIntoFrames :: [CropId] -> [CropFrame] Source #
eqImagePixelRGBA8 :: Image PixelRGBA8 -> Image PixelRGBA8 -> Bool Source #
mkCropImage :: Map ImageId (Image PixelRGBA8) -> ImageId -> CropImage Source #
cropCoordsImage :: (Pixel a, Eq (PixelBaseComponent a), Ord (PixelBaseComponent a)) => Image a -> ((Int, Int), (Int, Int)) Source #
firstOpaquePoint :: (Pixel a, Eq (PixelBaseComponent a), Ord (PixelBaseComponent a)) => (Image a -> [(Int, Int)]) -> ((Int, Int) -> Int) -> Image a -> Maybe Int Source #
findY0 :: (Pixel a, Eq (PixelBaseComponent a), Ord (PixelBaseComponent a)) => Image a -> Maybe Int Source #
findY1 :: (Pixel a, Eq (PixelBaseComponent a), Ord (PixelBaseComponent a)) => Image a -> Maybe Int Source #
findX0 :: (Pixel a, Eq (PixelBaseComponent a), Ord (PixelBaseComponent a)) => Image a -> Maybe Int Source #