| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Sixel
Synopsis
- c_bufsize :: CInt -> CInt -> IO CInt
- c_img2sixel :: Ptr () -> Ptr () -> CInt -> CInt -> IO CInt
- newtype SixelImage = SixelImage {}
- data LatexStr = LatexStr {
- toLatexStr :: String
- strSize :: Float
- latex :: String -> LatexStr
- math :: String -> LatexStr
- type ColorNumber = Word8
- type PixelPattern = Word8
- type Width = Int
- type Height = Int
- data SixelCmd
- class ToSixel a where
- toSixel :: a -> SixelImage
- putSixel :: a -> IO ()
- latexStr :: String -> Float -> String
- toSixelCmds :: Image PixelRGB8 -> [SixelCmd]
- img2sixel :: Image PixelRGB8 -> ByteString
- putImage :: FilePath -> IO ()
Documentation
newtype SixelImage Source #
Constructors
| SixelImage | |
Fields | |
Instances
| Eq SixelImage Source # | |
Defined in Data.Sixel | |
| Show SixelImage Source # | |
Defined in Data.Sixel Methods showsPrec :: Int -> SixelImage -> ShowS # show :: SixelImage -> String # showList :: [SixelImage] -> ShowS # | |
| ToSixel SixelImage Source # | |
Defined in Data.Sixel | |
Constructors
| LatexStr | |
Fields
| |
type ColorNumber = Word8 Source #
type PixelPattern = Word8 Source #
Constructors
| Start Int Int Int | |
| End | |
| Size Int Int Width Height | |
| ColorMapRGB ColorNumber Word8 Word8 Word8 | |
| ColorMapHLS ColorNumber Int Word8 Word8 | |
| Color ColorNumber | |
| Sixel PixelPattern | |
| Repeat Int PixelPattern | |
| CR | |
| LF |