Category:SVG simplification by transforming
An SVG drawing without any ttansformation is always smaller, and better readable, than one containing transformations.
But transformations have not only advantages for cloning,
they can e.g. be used in a drawing template.
The clock "5 before 12" contains both hands ready for any transformation, by just altering the degrees
every one of the 720 minutes of twelve hours can be drawn within seconds.
<?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" stroke="#000" stroke-width="2" stroke-linecap="round"> <path fill="none" d="m35,13a23,23 0,1,0 2,0z"/> <path transform="rotate(357.5 36,36)" d="m36,36V25"/> <path transform="rotate(330 36,36)" d="m36,36V19"/> </svg>
As can be seen from the code, the short "hour hand" is -2.5 degrees before twelve o'clock,
and the longer "minute hand" -30 degrees.
Every other position, or time, or degree, can be set swiftly:
Easy calculation
[edit]The drawing is reduced to a very simple calcultion.
- 1 hour is a full rotation of the "minute hand",
- each minute is 360/60 = 6°
- 12 hours are a full rotation of the "hour hand",
- one hour means 360/12 = 30°, 1 minute is 30/60 = a half degree
For the above example '5 before 12' the minute is at 360-30 degrees, the hour 360-2.5
Media in category "SVG simplification by transforming"
The following 12 files are in this category, out of 12 total.
-
Axiale last - kolom in gewapend beton.svg 652 × 654; 1 KB
-
CHE Bettens COA.svg 602 × 763; 488 bytes
-
Diamond warning sign (fluorescent yellow).svg 681 × 681; 267 bytes
-
Exemplo de função de penalidade.svg 540 × 484; 968 bytes
-
Flag of the Tetovo Municipality, North Macedonia.svg 400 × 200; 208 bytes
-
Forschungsreaktor Haigerloch Gitter.svg 512 × 471; 842 bytes
-
Frame-01.svg 724 × 724; 591 bytes
-
Holzkonstruktion 2.svg 586 × 500; 436 bytes
-
Japanese Crest Toyamakujisujikai.svg 688 × 688; 784 bytes
-
OpenMoji-black 5 to 12.svg 512 × 512; 295 bytes
-
Wikt Globe Bullet.svg 200 × 200; 560 bytes
-
Yuvar-drawing nevit 002.svg 1,052 × 744; 341 bytes