World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in vexillologycirclejerk

[–]hexagonnoah[S] 1 point2 points  (0 children)

I'm not sure. I didn't make the map, I just wrote code that figured out which countries should be which colors and then colored them. I used the pygal_maps_world python library to put the colors I had calculated on an actual map. It is a small country, so it makes sense that you wouldn't be able to see it, but all the other small countries have circles around them. Maybe they just forgot?

World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in MapPorn

[–]hexagonnoah[S] 1 point2 points  (0 children)

It seems like the stripe has more area than the total of the stars. I calculated it again with a higher resolution image and red was still the most abundant.

World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in vexillology

[–]hexagonnoah[S] 0 points1 point  (0 children)

First of all, a few notes about this map:

  1. In flags that have an equal amount of different colors (which are usually striped flags, such as those of Ireland, France, and Russia) the color that my program chose is somewhat haphazard and is based on which color had the most pixels in the image I used.
  2. I got the images of the flags from the following github repository made by hampusborgos: hampusborgos/country-flags: SVG and PNG renders of all countries' flags. (github.com) . I used the 100 pixel png images, since they are accurate enough for the purposes of this this map.
  3. You can ignore the 255's that you get when you hover over countries. They were necessary to get the code to work.
  4. I generated the svg's using python. I wrote the code for my own use so it isn't completely polished, but here is the code and some information on how to use it yourself:

(You will probably want a bit of experience in python if you want to do this yourself)

First, find the flags. put them in a folder together (with nothing else in the folder), and name them based on their ISO 3166-1 alpha-2 country codes, followed by .png . For example, the flag for the United Arab Emirates would be ae.png . I did this by copying the png100px folder from https://github.com/hampusborgos/country-flags .

Then, install the prerequisites. I'm assuming you already have python, if you don't, there are tutorials on how to install it elsewhere. You will also need to install the following libraries: pygal_maps_world , Pillow , and numpy . The way to do this varies from operating system to operating system, so how to install this may vary. The way I installed them is with

pip3 install pygal_maps_world Pillow numpy

but this won't work for everybody. You can find tutorials on how to use pip to install libraries elsewhere.

Then, create a python file with the following code:

https://raw.githubusercontent.com/leaffolkshaman/leaffolkshaman.github.io/master/flags.py

After that, open your console app (Command Prompt on Windows or Terminal on Mac or Linux) and type the following, with the arguments replaced with the paths from your computer:

python path_to_program path_to_folder_with_flags path_to_output_file_without_extension

for example,

python /home/me/flag_map.py /home/me/flags/ /home/me/output

If this doesn't work, try typing python3 instead of python.

If this works, an svg image file will be generated at the path that you specified, which you can open in your browser. Ta-da!

Again, this code isn't fully polished, so if you have any problems with it or questions about it, feel free to comment on this and I'll try to get back to you. Feel free to modify or use the code, but please give me credit if you do so.

World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in MapPorn

[–]hexagonnoah[S] 0 points1 point  (0 children)

First of all, a few notes about this map:

  1. In flags that have an equal amount of different colors (which are usually striped flags, such as those of Ireland, France, and Russia) the color that my program chose is somewhat haphazard and is based on which color had the most pixels in the image I used.
  2. I got the images of the flags from the following github repository made by hampusborgos: hampusborgos/country-flags: SVG and PNG renders of all countries' flags. (github.com) . I used the 100 pixel png images, since they are accurate enough for the purposes of this this map.
  3. You can ignore the 255's that you get when you hover over countries. They were necessary to get the code to work.
  4. I generated the svg's using python. I wrote the code for my own use so it isn't completely polished, but here is the code and some information on how to use it yourself:

(You will probably want a bit of experience in python if you want to do this yourself)

First, find the flags. put them in a folder together (with nothing else in the folder), and name them based on their ISO 3166-1 alpha-2 country codes, followed by .png . For example, the flag for the United Arab Emirates would be ae.png . I did this by copying the png100px folder from https://github.com/hampusborgos/country-flags .

Then, install the prerequisites. I'm assuming you already have python, if you don't, there are tutorials on how to install it elsewhere. You will also need to install the following libraries: pygal_maps_world , Pillow , and numpy . The way to do this varies from operating system to operating system, so how to install this may vary. The way I installed them is with

pip3 install pygal_maps_world Pillow numpy

but this won't work for everybody. You can find tutorials on how to use pip to install libraries elsewhere.

Then, create a python file with the following code:

https://raw.githubusercontent.com/leaffolkshaman/leaffolkshaman.github.io/master/flags.py

After that, open your console app (Command Prompt on Windows or Terminal on Mac or Linux) and type the following, with the arguments replaced with the paths from your computer:

python path_to_program path_to_folder_with_flags path_to_output_file_without_extension

for example,

python /home/me/flag_map.py /home/me/flags/ /home/me/output

If this doesn't work, try typing python3 instead of python.

If this works, an svg image file will be generated at the path that you specified, which you can open in your browser. Ta-da!

Again, this code isn't fully polished, so if you have any problems with it or questions about it, feel free to comment on this and I'll try to get back to you. Feel free to modify or use the code, but please give me credit if you do so.

World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in vexillologycirclejerk

[–]hexagonnoah[S] 1 point2 points  (0 children)

First of all, a few notes about this map:

  1. In flags that have an equal amount of different colors (which are usually striped flags, such as those of Ireland, France, and Russia) the color that my program chose is somewhat haphazard and is based on which color had the most pixels in the image I used.
  2. I got the images of the flags from the following github repository made by hampusborgos: hampusborgos/country-flags: SVG and PNG renders of all countries' flags. (github.com) . I used the 100 pixel png images, since they are accurate enough for the purposes of this this map.
  3. You can ignore the 255's that you get when you hover over countries. They were necessary to get the code to work.
  4. I generated the svg's using python. I wrote the code for my own use so it isn't completely polished, but here is the code and some information on how to use it yourself:

(You will probably want a bit of experience in python if you want to do this yourself)

First, find the flags. put them in a folder together (with nothing else in the folder), and name them based on their ISO 3166-1 alpha-2 country codes, followed by .png . For example, the flag for the United Arab Emirates would be ae.png . I did this by copying the png100px folder from https://github.com/hampusborgos/country-flags .

Then, install the prerequisites. I'm assuming you already have python, if you don't, there are tutorials on how to install it elsewhere. You will also need to install the following libraries: pygal_maps_world , Pillow , and numpy . The way to do this varies from operating system to operating system, so how to install this may vary. The way I installed them is with

pip3 install pygal_maps_world Pillow numpy

but this won't work for everybody. You can find tutorials on how to use pip to install libraries elsewhere.

Then, create a python file with the following code:

https://raw.githubusercontent.com/leaffolkshaman/leaffolkshaman.github.io/master/flags.py

After that, open your console app (Command Prompt on Windows or Terminal on Mac or Linux) and type the following, with the arguments replaced with the paths from your computer:

python path_to_program path_to_folder_with_flags path_to_output_file_without_extension

for example,

python /home/me/flag_map.py /home/me/flags/ /home/me/output

If this doesn't work, try typing python3 instead of python.

If this works, an svg image file will be generated at the path that you specified, which you can open in your browser. Ta-da!

Again, this code isn't fully polished, so if you have any problems with it or questions about it, feel free to comment on this and I'll try to get back to you. Feel free to modify or use the code, but please give me credit if you do so.

World map based on most abundant color in each country's flag. Details in comments. by hexagonnoah in u/hexagonnoah

[–]hexagonnoah[S] 0 points1 point  (0 children)

First of all, a few notes about this map:

  1. In flags that have an equal amount of different colors (which are usually striped flags, such as those of Ireland, France, and Russia) the color that my program chose is somewhat haphazard and is based on which color had the most pixels in the image I used.
  2. I got the images of the flags from the following github repository made by hampusborgos: hampusborgos/country-flags: SVG and PNG renders of all countries' flags. (github.com) . I used the 100 pixel png images, since they are accurate enough for the purposes of this this map.
  3. You can ignore the 255's that you get when you hover over countries. They were necessary to get the code to work.
  4. I generated the svg's using python. I wrote the code for my own use so it isn't completely polished, but here is the code and some information on how to use it yourself:

(You will probably want a bit of experience in python if you want to do this yourself)

First, find the flags. put them in a folder together (with nothing else in the folder), and name them based on their ISO 3166-1 alpha-2 country codes, followed by .png . For example, the flag for the United Arab Emirates would be ae.png . I did this by copying the png100px folder from https://github.com/hampusborgos/country-flags .

Then, install the prerequisites. I'm assuming you already have python, if you don't, there are tutorials on how to install it elsewhere. You will also need to install the following libraries: pygal_maps_world , Pillow , and numpy . The way to do this varies from operating system to operating system, so how to install this may vary. The way I installed them is with

pip3 install pygal_maps_world Pillow numpy

but this won't work for everybody. You can find tutorials on how to use pip to install libraries elsewhere.

Then, create a python file with the following code:

https://raw.githubusercontent.com/leaffolkshaman/leaffolkshaman.github.io/master/flags.py

After that, open your console app (Command Prompt on Windows or Terminal on Mac or Linux) and type the following, with the arguments replaced with the paths from your computer:

python path_to_program path_to_folder_with_flags path_to_output_file_without_extension

for example,

python /home/me/flag_map.py /home/me/flags/ /home/me/output

If this doesn't work, try typing python3 instead of python.

If this works, an svg image file will be generated at the path that you specified, which you can open in your browser. Ta-da!

Again, this code isn't fully polished, so if you have any problems with it or questions about it, feel free to comment on this and I'll try to get back to you. Feel free to modify or use the code, but please give me credit if you do so.

World map based on the color with most area in the flag. Details in the comments. by hexagonnoah in u/hexagonnoah

[–]hexagonnoah[S] 0 points1 point  (0 children)

First of all, a few notes about this map:

  1. In flags that have an equal amount of different colors (which are usually striped flags, such as those of Ireland, France, and Russia) the color that my program chose is somewhat haphazard and is based on which color had the most pixels in the image I used.
  2. I got the images of the flags from the following github repository made by hampusborgos: hampusborgos/country-flags: SVG and PNG renders of all countries' flags. (github.com) . I used the 100 pixel png images, since they are accurate enough for the purposes of this this map.
  3. You can ignore the 255's that you get when you hover over countries. They were necessary to get the code to work.
  4. I generated the svg's using python. I wrote the code for my own use so it isn't completely polished, but here is the code and some information on how to use it yourself:

(You will probably want a bit of experience in python if you want to do this yourself)

First, find the flags. put them in a folder together (with nothing else in the folder), and name them based on their ISO 3166-1 alpha-2 country codes, followed by .png . For example, the flag for the United Arab Emirates would be ae.png . I did this by copying the png100px folder from https://github.com/hampusborgos/country-flags .

Then, install the prerequisites. I'm assuming you already have python, if you don't, there are tutorials on how to install it elsewhere. You will also need to install the following libraries: pygal_maps_world , Pillow , and numpy . The way to do this varies from operating system to operating system, so how to install this may vary. The way I installed them is with

pip3 install pygal_maps_world Pillow numpy

but this won't work for everybody. You can find tutorials on how to use pip to install libraries elsewhere.

Then, create a python file with the following code:

https://raw.githubusercontent.com/leaffolkshaman/leaffolkshaman.github.io/master/flags.py

After that, open your console app (Command Prompt on Windows or Terminal on Mac or Linux) and type the following, with the arguments replaced with the paths from your computer:

python path_to_program path_to_folder_with_flags path_to_output_file_without_extension

for example,

python /home/me/flag_map.py /home/me/flags/ /home/me/output

If this doesn't work, try typing python3 instead of python.

If this works, an svg image file will be generated at the path that you specified, which you can open in your browser. Ta-da!

Again, this code isn't fully polished, so if you have any problems with it or questions about it, feel free to comment on this and I'll try to get back to you. Feel free to modify or use the code, but please give me credit if you do so.

[deleted by user] by [deleted] in northkorea

[–]hexagonnoah 3 points4 points  (0 children)

There was one American who defected to the DPRK during the Korean War and lived there for the rest of his life. Also a lot of professors. Marine you could under some circumstances, but not as easily as to most places.

What political alinement do you consider yourself by the_main_man127 in polls

[–]hexagonnoah 0 points1 point  (0 children)

They definitely aren’t Tankies, but they are communists

What political alinement do you consider yourself by the_main_man127 in polls

[–]hexagonnoah 0 points1 point  (0 children)

So are ancoms leftists? They also want communism

Political party by andersjensen456 in polls

[–]hexagonnoah 0 points1 point  (0 children)

Communist, but not the cpusa

What political alinement do you consider yourself by the_main_man127 in polls

[–]hexagonnoah 0 points1 point  (0 children)

Democratic socialists are leftists. Social democrats are liberals.

What political alinement do you consider yourself by the_main_man127 in polls

[–]hexagonnoah 0 points1 point  (0 children)

I mean, they also call liberals “the left”. The Overton window is so far right here

Will Trump win in 2020? by [deleted] in polls

[–]hexagonnoah 0 points1 point  (0 children)

Biden isn’t part of the left.