O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cleaning Up Your Code

Be sure to avoid exporting complex blends from Illustrator. SVG currently has no way to define complex, multi-directional blends comparable to Illustrator's Gradient Mesh or object blend. If you export a complex blend from Illustrator, your blend will comprise (potentially) hundreds of unique paths, representing each step of the gradation.

Such a result will be both code-heavy and nearly incomprehensible. Although visually you may achieve your result, the resulting code may warrant an alternative solution.

In Hour 20, you learned to code your artwork with basic shape elements when possible. A similar rule holds true in Illustrator: Try to create your artwork as simply as possible.

For instance, if you are creating a table, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required