Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Country flags (only Europe at this moment) and the European Union flag.
All flags are built on a viewbox "0 0 w h"
where w
and h
are particular to each flag (according to official ratios)
Flags are named with the 2-letter ISO code of each country, with very few exceptions,
named with the 3-letter ISO code to avoid name collision with some HTML or Attribute
functions
like hr
or cy
.
Synopsis
- countryFlags :: [(String, Svg)]
- flagV3Eq :: (Float, Float) -> String -> String -> String -> Svg
- flagH3Eq :: (Float, Float) -> String -> String -> String -> Svg
- ad :: Svg
- af :: Svg
- al :: Svg
- at :: Svg
- ba :: Svg
- be :: Svg
- bg :: Svg
- blr :: Svg
- ch :: Svg
- cyp :: Svg
- cz :: Svg
- de :: Svg
- dk :: Svg
- ee :: Svg
- es :: Svg
- eu :: Svg
- fi :: Svg
- fr :: Svg
- gr :: Svg
- hrv :: Svg
- ie :: Svg
- is :: Svg
- it :: Svg
- li :: Svg
- lt :: Svg
- lu :: Svg
- lv :: Svg
- mc :: Svg
- md :: Svg
- me :: Svg
- mk :: Svg
- mt :: Svg
- nl :: Svg
- no :: Svg
- pl :: Svg
- pt :: Svg
- ro :: Svg
- rs :: Svg
- ru :: Svg
- se :: Svg
- si :: Svg
- sk :: Svg
- sm :: Svg
- ua :: Svg
- uk :: Svg
- va :: Svg
- xk :: Svg
Documentation
countryFlags :: [(String, Svg)] Source #
A list with all the flags of this module, together with appropriate names.
countryFlags :: [ (String , S.Svg) ] countryFlags = [ (,) "ad" ad , (,) "af" af , (,) "al" al , (,) "at" at , (,) "ba" ba , (,) "be" be , (,) "bg" bg , (,) "by" blr , (,) "ch" ch , (,) "cy" cyp , (,) "cz" cz , (,) "de" de , (,) "dk" dk , (,) "ee" ee , (,) "es" es , (,) "eu" eu , (,) "fi" fi , (,) "fr" fr , (,) "gr" gr , (,) "hr" hrv , (,) "ie" ie , (,) "is" is , (,) "it" it , (,) "li" li , (,) "lt" lt , (,) "lu" lu , (,) "lv" lv , (,) "mc" mc , (,) "md" md , (,) "me" me , (,) "mk" mk , (,) "mt" mt , (,) "nl" nl , (,) "no" no , (,) "pl" pl , (,) "pt" pt , (,) "ro" ro , (,) "rs" rs , (,) "ru" ru , (,) "se" se , (,) "si" si , (,) "sk" sk , (,) "sm" sm , (,) "ua" ua , (,) "uk" uk , (,) "va" va , (,) "xk" xk ]
:: (Float, Float) |
|
-> String | color for the left stripe |
-> String | color for the central stripe |
-> String | color for the right stripe |
-> Svg | resulting flag |
Handy function to draw a flag with 3 vertical stripes of the same size.