| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Ipe.AllColors
Synopsis
- createIpeStyle :: IpeWriteText r => Text -> Map Text (IpeValue (RGB r)) -> IpeStyle
- namedSet :: Map Text v -> Set (IpeColor r)
- allColors :: Fractional r => Map Text (IpeValue (RGB r))
- nonRepeated :: Map Text v -> Map Text v
- allColorNames :: Map Text ()
- allColorsWith :: (Rational -> Rational -> Rational -> r) -> Map Text r
- data RGB a = RGB {
- channelRed :: !a
- channelGreen :: !a
- channelBlue :: !a
- cssStandardColors :: Fractional r => Map Text (IpeValue (RGB r))
- cssExtraColors :: Fractional r => Map Text (IpeValue (RGB r))
Documentation
Arguments
| :: IpeWriteText r | |
| => Text | the name of the stylesheet |
| -> Map Text (IpeValue (RGB r)) | |
| -> IpeStyle |
Given a name and a map of colors, construct an ipe style
allColors :: Fractional r => Map Text (IpeValue (RGB r)) Source #
Defines all colors with their RGB value as defined in the colors.isy style file that comes with ipe
nonRepeated :: Map Text v -> Map Text v Source #
only the non-repeated names; i.e. the ones without numerical suffix.
allColorNames :: Map Text () Source #
A map with all colors
allColorsWith :: (Rational -> Rational -> Rational -> r) -> Map Text r Source #
The actual colors; needs some parsing function to produce an appropriate value
An RGB triple for an unspecified colour space.
Constructors
| RGB | |
Fields
| |
Instances
| Applicative RGB Source # | |
| Functor RGB Source # | |
| Read a => Read (RGB a) Source # | |
| Show a => Show (RGB a) Source # | |
| Eq a => Eq (RGB a) Source # | |
| Coordinate r => IpeReadText (RGB r) Source # | |
Defined in Ipe.Reader Methods ipeReadText :: Text -> Either ConversionError (RGB r) Source # | |
| IpeWriteText r => IpeWriteText (RGB r) Source # | |
Defined in Ipe.Writer | |
cssStandardColors :: Fractional r => Map Text (IpeValue (RGB r)) Source #
The default CSS colors and their values
cssExtraColors :: Fractional r => Map Text (IpeValue (RGB r)) Source #
Extra CSS colors and their values