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 -> OutlineStyleSet the outline color.
#lineWidth Source
lineWidth :: Number -> OutlineStyleSet the line width.
#shadowBlur Source
shadowBlur :: Number -> ShadowSet the shadow blur.
#shadowColor Source
shadowColor :: Color -> ShadowSet the shadow color.
#everywhere Source
everywhere :: (Drawing -> Drawing) -> Drawing -> DrawingModify a Drawing by applying a transformation to every subdrawing.
Re-exports from Color
#Color Source
data ColorThe representation of a color.
Note:
- The
Eqinstance compares twoColors 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.