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

Images.CountryFlags

Description

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

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
  ]

flagV3Eq Source #

Arguments

:: (Float, Float)

w and h parameters for the viewbox (multiplied by 100 for width and height)

-> 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.

flagH3Eq Source #

Arguments

:: (Float, Float)

w and h parameters for the viewbox (multiplied by 100 for width and height)

-> String

color for the top stripe

-> String

color for the central stripe

-> String

color for the bottom stripe

-> Svg

resulting flag

Handy function to draw a flag with 3 horizontal stripes of the same size.

ad :: Svg Source #

Flag of Andorra

af :: Svg Source #

Flag of Afghanistan

al :: Svg Source #

Flag of Albania

at :: Svg Source #

Flag of Austria

ba :: Svg Source #

Flag of Bosnia and Herzegovina

be :: Svg Source #

Flag of Belgium

bg :: Svg Source #

Flag of Bulgaria

blr :: Svg Source #

Flag of Belarus

ch :: Svg Source #

Flag of Switzerland

cyp :: Svg Source #

Flag of Cyprus

cz :: Svg Source #

Flag of Czech Republic

de :: Svg Source #

Flag of Germany

dk :: Svg Source #

Flag of Denmark

ee :: Svg Source #

Flag of Estonia

es :: Svg Source #

Flag of Spain

eu :: Svg Source #

Flag of the European Union

fi :: Svg Source #

Flag of Finland

fr :: Svg Source #

Flag of France

gr :: Svg Source #

Flag of Greece

hrv :: Svg Source #

Flag of Croatia

ie :: Svg Source #

Flag of Ireland

is :: Svg Source #

Flag of Iceland

it :: Svg Source #

Flag of Italy

li :: Svg Source #

Flag of Liechtenstein

lt :: Svg Source #

Flag of Lithuania

lu :: Svg Source #

Flag of Luxembourg

lv :: Svg Source #

Flag of Latvia

mc :: Svg Source #

Flag of Monaco

md :: Svg Source #

Flag of Moldova

me :: Svg Source #

Flag of Montenegro

mk :: Svg Source #

Flag of North Macedonia

mt :: Svg Source #

Flag of Malta

nl :: Svg Source #

Flag of the Netherlands

no :: Svg Source #

Flag of Norway

pl :: Svg Source #

Flag of Polonia

pt :: Svg Source #

Flag of Portugal

ro :: Svg Source #

Flag of Romania

rs :: Svg Source #

Flag of Serbia

ru :: Svg Source #

Flag of Russia

se :: Svg Source #

Flag of Sweden

si :: Svg Source #

Flag of Slovenia

sk :: Svg Source #

Flag of Slovakia

sm :: Svg Source #

Flag of San Marino

ua :: Svg Source #

Flag of Ukraine

uk :: Svg Source #

Flag of Great Britain

va :: Svg Source #

Flag of the Holy See (Vatican City)

xk :: Svg Source #

Flag of Kosovo