hgeometry-ipe-0.11.0.0: Reading and Writing ipe7 files.

Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Ipe.Color

Contents

Description

Data type for representing colors in ipe as well as the colors available in the standard ipe stylesheet.

Synopsis

Documentation

newtype IpeColor r Source #

Constructors

IpeColor (IpeValue (RGB r)) 
Instances
Functor IpeColor Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

fmap :: (a -> b) -> IpeColor a -> IpeColor b #

(<$) :: a -> IpeColor b -> IpeColor a #

Foldable IpeColor Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

fold :: Monoid m => IpeColor m -> m #

foldMap :: Monoid m => (a -> m) -> IpeColor a -> m #

foldr :: (a -> b -> b) -> b -> IpeColor a -> b #

foldr' :: (a -> b -> b) -> b -> IpeColor a -> b #

foldl :: (b -> a -> b) -> b -> IpeColor a -> b #

foldl' :: (b -> a -> b) -> b -> IpeColor a -> b #

foldr1 :: (a -> a -> a) -> IpeColor a -> a #

foldl1 :: (a -> a -> a) -> IpeColor a -> a #

toList :: IpeColor a -> [a] #

null :: IpeColor a -> Bool #

length :: IpeColor a -> Int #

elem :: Eq a => a -> IpeColor a -> Bool #

maximum :: Ord a => IpeColor a -> a #

minimum :: Ord a => IpeColor a -> a #

sum :: Num a => IpeColor a -> a #

product :: Num a => IpeColor a -> a #

Traversable IpeColor Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

traverse :: Applicative f => (a -> f b) -> IpeColor a -> f (IpeColor b) #

sequenceA :: Applicative f => IpeColor (f a) -> f (IpeColor a) #

mapM :: Monad m => (a -> m b) -> IpeColor a -> m (IpeColor b) #

sequence :: Monad m => IpeColor (m a) -> m (IpeColor a) #

Eq r => Eq (IpeColor r) Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

(==) :: IpeColor r -> IpeColor r -> Bool #

(/=) :: IpeColor r -> IpeColor r -> Bool #

Ord r => Ord (IpeColor r) Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

compare :: IpeColor r -> IpeColor r -> Ordering #

(<) :: IpeColor r -> IpeColor r -> Bool #

(<=) :: IpeColor r -> IpeColor r -> Bool #

(>) :: IpeColor r -> IpeColor r -> Bool #

(>=) :: IpeColor r -> IpeColor r -> Bool #

max :: IpeColor r -> IpeColor r -> IpeColor r #

min :: IpeColor r -> IpeColor r -> IpeColor r #

Read r => Read (IpeColor r) Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Show r => Show (IpeColor r) Source # 
Instance details

Defined in Data.Geometry.Ipe.Color

Methods

showsPrec :: Int -> IpeColor r -> ShowS #

show :: IpeColor r -> String #

showList :: [IpeColor r] -> ShowS #

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

Defined in Data.Geometry.Ipe.Reader

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

Defined in Data.Geometry.Ipe.Writer

named :: Text -> IpeColor r Source #

Creates a named color

Basic Named colors