Optical Illusion 2

by JayNick - uploaded on December 5, 2017, 6:24 pm

Inspired by https://openclipart.org/detail/147427/figura-dinamica-concentrica



Original file greater than 1 MB. This file less than 5 KB.

Log in to add this clipart to a collection.

Tags
geometry illusion opt.chall.2 optical STEAM steamcoded.org STEM
Safe for Work?
Yes
Download SVG

Comments

Since, like me, you like the source as small as possible, might I suggest changing the viewBox to "-200 -200 400 400". That is perfectly legal SVG, and allows you to have all the circles with cx="0" cy="0", both of which are defaults, so they need not be explicitly specified. That would shave 18*4 = 72 bytes.

Not only that, you could than reduce the rotations to rotate(7.83) and skip the 200,200 because the default is rotation about [0,0]. That would allow you to shave off additional 8*39 = 312 bytes. I have not analyzed to see if that would also allow you to get rid of the translate(20,20), but if so, it would shave off an additional 17*39 = 663 bytes (yes, 17, because the blank space before the keyword translate would also be eliminated).

Of course, it would add 6 bytes to the viewBox, but that is a small cost if it saves you all those other bytes.

Most importantly, however, it makes the math much simpler because rotating about [0,0] is mathematically much simpler than rotating about any other point.

Log in to comment.