- data Diagram
- circle :: Double -> Diagram
- rect :: Double -> Double -> Diagram
- (>-<) :: Point -> Point -> Diagram
- move :: Diagram -> (Double, Double) -> Diagram
- rotate :: Diagram -> Double -> Diagram
- scale :: Diagram -> Double -> Diagram
- (<|>) :: Diagram -> Diagram -> Diagram
- union :: [Diagram] -> Diagram
- polygon :: [Point] -> Diagram
- polyline :: [Point] -> Diagram
- strokeWidth :: Diagram -> Double -> Diagram
- fill :: Color c => Diagram -> c -> Diagram
- stroke :: Color c => Diagram -> c -> Diagram
- class Color c
- rgb :: Fractional a => a -> a -> a -> Colour a
- module Data.Colour.Names
- type Point = (Double, Double)
- (.+.) :: Point -> Point -> Point
- (.-.) :: Point -> Point -> Point
- (.*.) :: Point -> Point -> Point
- (*.) :: Double -> Point -> Point
- scaleY :: Double -> Diagram -> Diagram
- draw :: Diagram -> IO ()
- drawOn :: Int -> Int -> Diagram -> IO ()
Documentation
data Diagram
strokeWidth :: Diagram -> Double -> DiagramSource
class Color c
The Color
type class encompasses color representations which
can be used by the Diagrams library; that is, every function in
the Diagrams library which expects a color can take any type
which is an instance of Color
. Instances are provided for both
the Colour
and AlphaColour
types from
the Data.Colour library.
rgb :: Fractional a => a -> a -> a -> Colour a
Constructs a Colour
from RGB values using the linear RGB colour
with the same gamut as sRGB.
module Data.Colour.Names