Copyright | (C) Frank Staals |
---|---|

License | see the LICENSE file |

Maintainer | Frank Staals |

Safe Haskell | None |

Language | Haskell2010 |

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

## Synopsis

- newtype IpeColor r = IpeColor (IpeValue (RGB r))
- named :: Text -> IpeColor r
- red :: IpeColor r
- green :: IpeColor r
- blue :: IpeColor r
- yellow :: IpeColor r
- orange :: IpeColor r
- gold :: IpeColor r
- purple :: IpeColor r
- gray :: IpeColor r
- brown :: IpeColor r
- navy :: IpeColor r
- pink :: IpeColor r
- seagreen :: IpeColor r
- turquoise :: IpeColor r
- violet :: IpeColor r
- darkblue :: IpeColor r
- darkcyan :: IpeColor r
- darkgray :: IpeColor r
- darkgreen :: IpeColor r
- darkmagenta :: IpeColor r
- darkorange :: IpeColor r
- darkred :: IpeColor r
- lightblue :: IpeColor r
- lightcyan :: IpeColor r
- lightgray :: IpeColor r
- lightgreen :: IpeColor r
- lightyellow :: IpeColor r

# Documentation

## Instances

Functor IpeColor Source # | |

Foldable IpeColor Source # | |

Defined in Data.Geometry.Ipe.Color 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 # elem :: Eq a => a -> IpeColor a -> Bool # maximum :: Ord a => IpeColor a -> a # minimum :: Ord a => IpeColor a -> a # | |

Traversable IpeColor Source # | |

Eq r => Eq (IpeColor r) Source # | |

Ord r => Ord (IpeColor r) Source # | |

Read r => Read (IpeColor r) Source # | |

Show r => Show (IpeColor r) Source # | |

Coordinate r => IpeReadText (IpeColor r) Source # | |

Defined in Data.Geometry.Ipe.Reader ipeReadText :: Text -> Either ConversionError (IpeColor r) Source # | |

IpeWriteText r => IpeWriteText (IpeColor r) Source # | |

Defined in Data.Geometry.Ipe.Writer |

# Basic Named colors

darkmagenta :: IpeColor r Source #

darkorange :: IpeColor r Source #

lightgreen :: IpeColor r Source #

lightyellow :: IpeColor r Source #