Appease Your Google Overlords: Draw the "G" Logo Write a program or function that takes in a positive integer N, and outputs an N&times;N pixel image of Google's "G" logo according to this* construction:


  


For example, if N is 400, a 400&times;400 pixel logo should be output, with correct dimensions and colors:



It should look accurate regardless of how large or small N is. e.g. here is N = 13: 

Your code should not need to connect to the internet. For example, scaling an externally hosted svg is not allowed. (Scaling an svg encoded in your code would be fine though.)

Anti-aliasing may be used or not. It's up to you.

Notice that the horizontal bar of the "G" does not extend all the way to the right edge of the image. The circle curves normally inward on the right edge before it is cut off.

The shortest code in bytes wins.



* The construction of the logo has been simplified for this challenge. The correct construction can be seen here and here.
Mathematica, 229 226 225 224 221 206 169 bytes
Thanks @MartinEnder for 1 byte, @ChipHurst for 37 bytes!
Graphics[{RGBColor@{&quot;#EA4335&quot;,&quot;#FBBC05&quot;,&quot;#34A853&quot;,&quot;#4285F4&quot;}[[#]],{0,-1}~Cuboid~{√24,1},Annulus[0{,},{3,5},{(2#-9)Pi/4,ArcCsc@5}]}&amp;~Array~4,ImageSize-&gt;#,PlotRange-&gt;5]&amp;

What a fun challenge!
Explanation
...&amp;~Array~4

Iterate from 1 to 4...
RGBColor@{&quot;#EA4335&quot;,&quot;#FBBC05&quot;,&quot;#34A853&quot;,&quot;#4285F4&quot;}[[#]]

Convert the color hex codes to RGBColor objects, so that they can be applied to the Google logo graphic. Change the color palette to the &lt;input&gt;th color.
{0,-1}~Cuboid~{√24,1}

Create a filled rectangle (2D cuboid), whose diagonal corners are (0, -1) and (sqrt(24), 1).
Annulus[0{,},{3,5},{(2#-9)Pi/4,ArcCsc@5}]}

Generate four filled quarter-Annuluss, centered at the origin, with inner radius 3 and outer radius 5. Do not draw past ArcCsc@5 (where the blue segment ends).
Graphics[ ... , ImageSize-&gt;#,PlotRange-&gt;5]

Create a graphic with size N x N, from x = -5 to x = 5 (removes the padding).
Outputs
N = 10

N = 100

N = 200

N = 10000 (click image for full resolution)