Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- mosaicSample :: [(String, Svg)]
- nazariMosaic :: String -> String -> Svg
- triReligiousMosaic :: String -> String -> String -> Svg
- hexagonsMosaic :: String -> String -> Svg
- beehiveMosaic :: Svg
- lemonsMosaic :: String -> Svg
- arabicMosaic :: String -> String -> Svg
- peopleMosaic :: String -> String -> Svg
- hexMosaic :: String -> Svg
- arrowsMosaic :: String -> Svg
- wiresMosaic :: String -> Svg
- curvesMosaic :: Svg
- airplaneMosaic :: String -> Svg
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\)
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\)