46
8
Task: Output the Swiss flag.
Happy Swiss National Day / Schweizer Bundesfeiertag / Fête nationale suisse / Festa nazionale svizzera / Fiasta naziunala svizra!
Details:
The flag consists of a white (#FFFFFF) cross on a red (#FF0000) background. The cross consists of a 6x6 square with arms of size 6x7 glued to each side. The cross is in the center of the 32x32 square background having a distance of 6 units to each side. (Source)
The output size can be chosen by the participant, but the image must exactly match these proportions, this means its size must be a multiple of 32.

A minimal version would look like so:


























1In some versions of the flag challenges, colored ASCII output was allowed, but you have not included [tag:ascii-art]. Just to confirm, ASCII output is not allowed? – Stephen – 8 years ago
1Right, only the widely known image formats are allowed as well as output on the screen. – flawr – 8 years ago
20
echo- I assume this is not allowed – Digital Trauma – 8 years agoI see a blue CH, I don't see why this should be allowed. – flawr – 8 years ago
How widely-known do you mean? Does something like pbm qualify?
– Tutleman – 8 years ago1
@Tutleman I think it does
– Luis Mendo – 8 years agoAre the usage of library allowed ? Low level languages does not provide graphic tools in their standard library – HatsuPointerKun – 8 years ago
@Hatsu this is always allowed if you specify the ones you use – Felix Dombek – 8 years ago
Can the white portion of the flag be transparent? – Post Rock Garf Hunter – 8 years ago
No it should be white. – flawr – 8 years ago
Holy shit, I was browsing pastebin yesterday (don't ask) and I found a paste of someone making the flag of switzerland. Is this you? https://pastebin.com/v8pVcQpD
– sagiksp – 8 years ago@HatsuPointerKun Any language that can save/output a text file can output net ppm format
– trichoplax – 8 years ago@trichoplax Interesting. I didn't know about that file format... – HatsuPointerKun – 8 years ago
does there need to be a border of non-red pixels? – 12Me21 – 8 years ago
No, is there anything that would suggest that? – flawr – 8 years ago
Many of the answers seem to assume that there needs to be a border. I imagine that setting the background color to red might be shorter than drawing a 32x32 pixel red square. – 12Me21 – 8 years ago
Well the image needs to satisfy those criteria, if the background is larger or smaller than the given dimensions it is not valid. – flawr – 8 years ago
Oh, so I can't just say "the flag is drawn in front of a red background but you can't see the edge because they're the same color"? – 12Me21 – 8 years ago