svg-icons-2.1.0.0: Svg Icons and more
Safe HaskellSafe-Inferred
LanguageHaskell2010

SvgIcons.Images.Mosaics

Description

This module exports images that can be used as base tile to build a mosaic. This can be achieved using them with CSS as background-image with background-repeat: repeat

They are already wrapped in the <svg> tag, which means:

  • They are not composible.
  • They are ready for use, no wrapping work needed.
  • To build a perfectly matching mosaic, you must respect the width-to-height ratio (specific for every tile function), otherwise the resulting will have undesired gaps inbetween.
Synopsis

Documentation

mosaicSample :: [(String, Svg)] Source #

A list of all mosaics from this module, evaluated with test colors. Please use more sensible colors in order to avoid eye injuries on the viewer.

mosaicSample :: [ (String , S.Svg) ]
mosaicSample =
  [ (,) "nazariMosaic"       (nazariMosaic "orange" "purple")
  , (,) "triReligiousMosaic" (triReligiousMosaic "blue" "orange" "green")
  , (,) "hexagonsMosaic"     (hexagonsMosaic "navy" "none")
  , (,) "beehiveMosaic"       beehiveMosaic
  , (,) "lemonsMosaic"       (lemonsMosaic "gold")
  , (,) "arabicMosaic"       (arabicMosaic "blue" "brown")
  , (,) "peopleMosaic"       (peopleMosaic "silver" "white")
  , (,) "hexMosaic"          (hexMosaic    "limegreen")
  , (,) "arrowsMosaic"       (arrowsMosaic "orange")
  , (,) "wiresMosaic"        (wiresMosaic  "gray")
  , (,) "curvesMosaic"        curvesMosaic
  , (,) "airplaneMosaic"     (airplaneMosaic "deepskyblue")
  ]

nazariMosaic :: String -> String -> Svg Source #

Ratio between width and height is: \(h = \sqrt{3} \cdot w\)

triReligiousMosaic :: String -> String -> String -> Svg Source #

Ratio between width and height is: \(h = \sqrt{3} \cdot w\)

hexagonsMosaic :: String -> String -> Svg Source #

Ratio between width and height is: \(h = \sqrt{3} \cdot w\)

beehiveMosaic :: Svg Source #

Ratio between width and height is: \(h = \sqrt{3} \cdot w\)

lemonsMosaic :: String -> Svg Source #

Ratio between width and height is: \(h = 0.85 \cdot w\)

arabicMosaic :: String -> String -> Svg Source #

Ratio between width and height is: \(h = w\)

peopleMosaic :: String -> String -> Svg Source #

Ratio between width and height is: \(h = w\)

hexMosaic :: String -> Svg Source #

Ratio between width and height is: \(w = \sqrt{3} \cdot h\)

arrowsMosaic :: String -> Svg Source #

Ratio between width and height is: \(h = \sqrt{3} \cdot w\)

wiresMosaic :: String -> Svg Source #

Ratio between width and height is: \(h = w\)

curvesMosaic :: Svg Source #

Ratio between width and height is: \(h = w\)

airplaneMosaic :: String -> Svg Source #

Ratio between width and height is: \(h = w\)