# Draw the flag of Bangladesh

The flag of Bangladesh is very simple. It looks like below:

The flag will be in bottle green (#006a4e) and rectangular in size in the proportion of length to width of 10:6, with a red circle in near middle. The red circle (#f42a41) will have a radius of one-fifth of the length of the flag. This image will help you to understand the proportions properly:

In this Graphical output challenge, you need to draw the flag of Bangladesh like first image. Standard loopholes apply, Shortest code wins.

Resolution cannot be 0px, or echo style answers not supported.

Minimum resolution is 286*176

• Related: Plot a centered circle. I adapted my answer from there Apr 20, 2021 at 7:52
• Next challenge: draw the flag of Bhutan.
– Mark
Apr 21, 2021 at 23:31
• So basically every attempt of mine to center a circle in a div 😂 Apr 22, 2021 at 18:38
• @Mark Mathematica, 23 bytes: "BT"~CountryData~"Flag" Jan 14, 2022 at 3:31

# Desmos, 66 bytes

This:

r=rgb(244,42,65)
g=rgb(0,106,78)
-9≤x≤11\left\{yy≤36\right\}
xx+yy≤16


This is longer than the other one, but that other one didn't work, as \left and \right seems to be needed.

• This doesn't work when pasted in. May 9, 2022 at 7:58

# Perl 5 + -M5.10.0, 82 bytes

say"P6 300 180 255",map$=>((135-$_%300)**2+(90-\$_/300)**2)**.5?".*A":".jN",0..54e3

Try it online!

Generates a PBM file by going through every co-ordinate and checking if the current pixel is within the circle, outputting the values for green or red respectively.

# Pikchr, 75 bytes

box ht.45fill 27214 color off
circle at-3/80,0rad.15fill 0xf42a41 color off


## Output

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112.32 69.12">
<path d="M2,66L110,66L110,2L2,2Z" style="fill:rgb(0,106,78);"></path>
<circle cx="50" cy="34" r="21.6" style="fill:rgb(244,42,65);"></circle>
</svg>