100-days-of-rust/Week-12/Day-81_Draw-The-G-Logo
2023-03-23 21:38:35 -04:00
..
README.md Add files via upload 2023-03-23 21:38:35 -04:00

Write a program or function that takes in a positive integer N, and outputs an N×N pixel image of Google's "G" logo according to this* construction:

google logo

For example, if N is 200, a 200×200 pixel logo should be output, with correct dimensions and colors:

google logo

  • It should look accurate regardless of how large or small N is.

  • 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.