Module
Graphics.Drawing
- Package
- purescript-drawing
- Repository
- paf31/purescript-drawing
This module defines a type Drawing
for creating vector graphics.
#OutlineStyle Source
#outlineColor Source
outlineColor :: Color -> OutlineStyle
Set the outline color.
#lineWidth Source
lineWidth :: Number -> OutlineStyle
Set the line width.
#shadowBlur Source
shadowBlur :: Number -> Shadow
Set the shadow blur.
#shadowColor Source
shadowColor :: Color -> Shadow
Set the shadow color.
#everywhere Source
everywhere :: (Drawing -> Drawing) -> Drawing -> Drawing
Modify a Drawing
by applying a transformation to every subdrawing.
Re-exports from Color
#Color Source
data Color
The representation of a color.
Note:
- The
Eq
instance compares twoColor
s by comparing their (integer) RGB values. This is different from comparing the HSL values (for example, HSL has many different representations of black (arbitrary hue and saturation values). - Colors outside the sRGB gamut which cannot be displayed on a typical
computer screen can not be represented by
Color
.