Coder Social home page Coder Social logo

ie_barcode's Introduction

IE Barcode

IE Barcode

This generates an Irish version of OMA/AMO's iconic EU Barcode flag concept, based on a geojson file of the county borders. Can also be used to generate flag for anywhere else just provide the boundaries and colours of the constituent flags.

Background

In 2001 Rem Koolhaas and his think-tank AMO developed a proposal for a new flag and visual language for the European Union. The concept for the EU Barcode was to merge the flags of current EU member states into a new representative flag.

Here is what EU Barcode flag looks like:
EU Barcode

When I saw the flag I thought that it would be interesting to create a Irish version flag following the same concept made up of the country flags. At the time I think I got out my colouring pencils and started colouring...

...a decade passed... recently I decided to have another go this time with code !

This node script takes the borders for the 32 counties along with their flag colours, it sorts the counties west to east and and then with the help of d3 generates a flag made up of the constituent flag colours.

It can be used to generate a similar flag for other countries/continents/planets as well.

Usage

  1. Download this repo:

    $ git clone [email protected]:vool/ie_barcode.git

  2. Get the borders for the constituent areas in geojson format place this in the data directory as <name>.geojson, update the config within app.js and set name to whatever you called this file.

    var config = {
        "anme": "<name>",
        "flag": {
            "size": [1000, 500] // "size": [3200, 1600]
        }
    };

The county borders for Ireland are included:

``data/ireland.geojson``
  1. Add the colour info for the flags of the constituent areas, this should be a json file with elements matching the names in the geojson feature set. A file of this format can be generated from the geojson structure:

    node app.js -colours

    this should create:

    data/<name>.colours.json

    Add the flag colours to the colours arrays.

    The county flag colours for Ireland are included:

    data/ireland.colours.json

  2. Run

    node app.js

    This should create:

    output/<name>.svg

    This is what the flag for Ireland looks like: IE Barcode

Just Say'in

I was a bit disapointed with the outcome, there were a counple of reasons for this:

####Colours Irish counties do not have any offical flags so I used the GAA county flags of which the colours are pretty garish.

####Propotrions

Despite being made up from 32 flags the bars are much wider that the EU original, this is largely due to the fact that I keep with the 2:1 proportion of the Irish tricolour and that the GAA county flags are mainly bicolours.

ie_barcode's People

Contributors

vool avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.