hgeometry-ipe
Safe HaskellNone
LanguageGHC2024

Ipe.AllColors

Synopsis

Documentation

createIpeStyle Source #

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

namedSet :: Map Text v -> Set (IpeColor r) Source #

Helper for just producing a set of names

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

data RGB a Source #

An RGB triple for an unspecified colour space.

Constructors

RGB 

Fields

Instances

Instances details
Applicative RGB Source # 
Instance details

Defined in Data.Colour.RGB

Methods

pure :: a -> RGB a Source #

(<*>) :: RGB (a -> b) -> RGB a -> RGB b Source #

liftA2 :: (a -> b -> c) -> RGB a -> RGB b -> RGB c Source #

(*>) :: RGB a -> RGB b -> RGB b Source #

(<*) :: RGB a -> RGB b -> RGB a Source #

Functor RGB Source # 
Instance details

Defined in Data.Colour.RGB

Methods

fmap :: (a -> b) -> RGB a -> RGB b Source #

(<$) :: a -> RGB b -> RGB a Source #

Read a => Read (RGB a) Source # 
Instance details

Defined in Data.Colour.RGB

Show a => Show (RGB a) Source # 
Instance details

Defined in Data.Colour.RGB

Methods

showsPrec :: Int -> RGB a -> ShowS Source #

show :: RGB a -> String Source #

showList :: [RGB a] -> ShowS Source #

Eq a => Eq (RGB a) Source # 
Instance details

Defined in Data.Colour.RGB

Methods

(==) :: RGB a -> RGB a -> Bool Source #

(/=) :: RGB a -> RGB a -> Bool Source #

Coordinate r => IpeReadText (RGB r) Source # 
Instance details

Defined in Ipe.Reader

IpeWriteText r => IpeWriteText (RGB r) Source # 
Instance details

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