Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn HTML5 by Creating Fun Games

You're reading from   Learn HTML5 by Creating Fun Games Learning should be fun, especially when it comes to getting to grips with HTML5 Game Development. Each chapter of this book teaches a new concept for learning HTML5 by helping you develop a relevant game. It's education without the effort.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781849696029
Length 374 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rodrigo Silveira Rodrigo Silveira
Author Profile Icon Rodrigo Silveira
Rodrigo Silveira
Arrow right icon
View More author details
Toc

SVG


Scalable Vector Graphics (SVG) for short, is an XML based format that describes graphics. This format may seem complicated enough to be confused with a full blown programming language for 2D graphics, but in truth it is just a markup language. While SVG may seem new to some web developers, the specification was first developed back in 1999.

The main difference between a vector graphic and a raster graphic (in other words, a bitmap) is the way that the graphic is described. In a bitmap, each pixel is essentially represented by three or four numbers, representing the color of that individual pixel (RGB), along with a possible opacity level. Looking at it from a broader sense, a bitmap is nothing more than a grid of pixels. Vectors, on the other hand, are described by a series of mathematical functions that describe lines, shapes, and colors, instead of each individual point on the entire image. To put it in simple terms, vector graphics do a fantastic job of scaling its dimensions, as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image