| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Sixel
Contents
Synopsis
- type Width = Int
- type Height = Int
- data SixelCmd
- img2sixel :: Image PixelRGB8 -> ByteString
- newtype SixelImage = SixelImage {}
- class ToSixel a where
- toSixel :: a -> SixelImage
- putSixel :: a -> IO ()
- type ColorNumber = Word8
- type PixelPattern = Word8
- img2palettizedSixel :: Image PixelRGB8 -> ByteString
- putImage :: FilePath -> IO ()
- toSixelCmds :: Image PixelRGB8 -> [SixelCmd]
- data LatexStr = LatexStr {
- toLatexStr :: String
- strSize :: Float
- latex :: String -> LatexStr
- math :: String -> LatexStr
Documentation
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 |
newtype SixelImage Source #
Constructors
| SixelImage | |
Fields | |
Instances
| Show SixelImage Source # | |
Defined in Data.Sixel Methods showsPrec :: Int -> SixelImage -> ShowS # show :: SixelImage -> String # showList :: [SixelImage] -> ShowS # | |
| Eq SixelImage Source # | |
Defined in Data.Sixel | |
| ToSixel SixelImage Source # | |
Defined in Data.Sixel | |
type ColorNumber = Word8 Source #
type PixelPattern = Word8 Source #
putImage :: FilePath -> IO () Source #
Display sixel image via ByteString
putStr of String is really slow on ghci. (Compiled version is not so slow.)
To improve perfomance of rendering on ghci, this function uses putStr of ByteString.
Constructors
| LatexStr | |
Fields
| |