Google new logo How to do only 305 bytes

Source: Internet
Author: User
Tags uppercase letter

Google Old and new logo

Google changed the logo for some time, for the replacement of the logo issue, we discussed the most is the new and old logo which is more beautiful.

But there are also individual students have noticed the fact that Google's new logo is only 305 bytes that big, and the old logo has 14000 bytes.

Cough, according to Google's network traffic, a logo alone can save a lot of bandwidth for the entire Internet ah. Why is the new logo so small?

Google's old logo uses serif fonts, which can only be created with Bezier curves. As shown, from the Google logo can be seen, the old logo has up to 100 anchor points, so the resulting logo file reached about 6Kb (6380 bytes) size is not surprising. After compression, the logo size is approximately 2 KB (2145 bytes) in size.

Google old logo

Google's new version of the logo in a lot of simplification, in addition to the lowercase letter G, the other letters can be made of round and rectangular structure. As shown in the following:

Google new logo

The whole new logo consists of the following parts:

    1. 10 round. (The Uppercase letter G accounts for 2 circles, the lowercase letter G accounts for 2 circles, the letter e accounts for two circles, each letter O accounts for 2 circles).
    2. A rectangle of 5. (The Uppercase letter G is 2 rectangles, the lowercase letter g is 1 rectangles, the letter E is two rectangles).
    3. A graphic consisting of 7 anchor points (lower half of the lowercase g).

I created an SVG vector with the capital letter G, the resulting file size is 302 bytes, and only 195 bytes after compression. The following is an uncompressed graphic code (consisting of two rectangles and two circles).

<svg xmlns="Http://www.w3.org/2000/svg"> <circle r=" -"cy=" -"cx=" -"Fill="#4885ed"/><circle r=" -"cy=" -"cx=" -"Fill="#ffffff"/><rect transform="rotate ( -40 166,67)"height=" +"Width=" About"y=" -"x="117"Fill="#ffffff"/><rect height=" -"Width=" the"y=" the"x="111"Fill="#4885ed"/></svg>

The above code generates a graph as shown in the G on the right.

Of course, there is another way to draw. We can use strokes instead of fills to draw logos, and this way the resulting file is smaller, only 290 bytes. The code looks like this:

<svg xmlns="SVG Namespace"Width=" -"height=" -"><g stroke-width=" -"Fill="None"> <path d="M173 102a51 0 1 1-13-30m20 37h-53"Stroke="#4a87ee"/> <circle cx="227"cy=" -"R=" +"Stroke="#d83038"/> <circle cx="313"cy=" -"R=" +"Stroke="#f4c022"/> <path d="M401 160a31 0 1 1 0-61m-4 0a24 0 1 1 0 61m26-67v79m-1-12a20 0 1 1-52"Stroke="#4a87ee"/> <path stroke="#4ab95a"D="M449 51v115"/> <path d="M529 118a30 0 1 0-2 24m5-32l-62"Stroke="#d83038"/></g></svg>

Using strokes, the entire logo requires only two circles (two letters O), and four paths (corresponding to the letters G, G, L, and E) can be drawn. As shown in the following:

Source: Quora :code123

Article sync posted in Csdn, cnblogs and personal blogs code123! Reprint please keep the source!

Google new logo How to do only 305 bytes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.