Copyright | (c) 2017 Jeffrey Rosenbluth |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | jeffrey.rosenbluth@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Tools for creating symmtery images specific to JuicyPixels.
- pattern :: RealFloat a => Options a -> ([Coef a] -> Recipe a) -> [Coef a] -> WPtype a -> PreProcess -> Maybe FilePath -> FilePath -> IO ()
- rosette :: RealFloat a => Options a -> [Coef a] -> Int -> Bool -> PreProcess -> Maybe FilePath -> FilePath -> IO ()
- recipe :: RealFloat a => SymmetryGroup a -> [Coef a] -> Recipe a
- colorWheel :: RealFloat a => Complex a -> PixelRGBA8
- invertImage :: (Pixel p, Invertible p) => Image p -> Image p
- flipVertical :: Pixel a => Image a -> Image a
- flipHorizontal :: Pixel a => Image a -> Image a
- flipBoth :: Pixel a => Image a -> Image a
- beside :: Pixel a => Image a -> Image a -> Image a
- below :: Pixel a => Image a -> Image a -> Image a
- antiSymmHorizontal :: (Pixel a, Invertible a) => Image a -> Image a
- antiSymmVertical :: (Pixel a, Invertible a) => Image a -> Image a
- toImageRGBA8 :: DynamicImage -> Image PixelRGBA8
- writeJpeg :: Word8 -> FilePath -> Image PixelRGBA8 -> IO ()
- writeImage :: FilePath -> Image PixelRGBA8 -> IO ()
Wallpaper Generation
pattern :: RealFloat a => Options a -> ([Coef a] -> Recipe a) -> [Coef a] -> WPtype a -> PreProcess -> Maybe FilePath -> FilePath -> IO () Source #
Create and write a wallpaper or frieze image.
rosette :: RealFloat a => Options a -> [Coef a] -> Int -> Bool -> PreProcess -> Maybe FilePath -> FilePath -> IO () Source #
Create and write a rosette.
recipe :: RealFloat a => SymmetryGroup a -> [Coef a] -> Recipe a Source #
Build a recipe for a group.
Color Wheels
colorWheel :: RealFloat a => Complex a -> PixelRGBA8 Source #
A Color wheel on the entire complex plane. The color is solely based on the phase of the complex number.
Image Processing
invertImage :: (Pixel p, Invertible p) => Image p -> Image p Source #
Invert the colors of an image.
flipHorizontal :: Pixel a => Image a -> Image a Source #
Reflect and image about the horizontal axis.
antiSymmHorizontal :: (Pixel a, Invertible a) => Image a -> Image a Source #
Flip an image horizontally, invert it and place it below the original image.
antiSymmVertical :: (Pixel a, Invertible a) => Image a -> Image a Source #
Flip an image vertically, invert it and place it beside the original image.
JuicyPixels Utilities
toImageRGBA8 :: DynamicImage -> Image PixelRGBA8 Source #
Convert a DynamicImage
to RGBA8 format.
writeImage :: FilePath -> Image PixelRGBA8 -> IO () Source #
Write an image file to disk, the image type depends on the file extension of the output file name.