SVG, Canvas, & WebGL: A Comprehensive Guide to Web Graphics

· Chong Lip Phang
5.0
2 reviews
Ebook
179
Pages
Ratings and reviews aren’t verified  Learn More

About this ebook

SVG and Canvas (2D or WebGL) represent the different ways to create graphics on a web application programmatically.

​​​​​​​

Unlike Canvas, SVG is based solely on XML, a markup language like HTML. You do not need to use JavaScript to create an SVG image.


On the other hand, Canvas, 2D or WebGL, is based on JavaScript. Games and maps have been developed with Canvas. 


While a canvas lacks many SVG features like object-level event-driven interactivity, a canvas provides per-pixel control of the graphic.


SVG is faster when rendering large objects, but slower when rendering many objects. A canvas allows you to display the webcam capture, letting you take and save a photo with it.


Covering every language construct, keyword, and function, this book attempts to provide a complete guide to web graphics based on these technologies.


Have fun!


source codes: https://drive.google.com/file/d/17IBN0IqqwSFSiBmqDx4g5tjuei78lPWj/view?usp=sharing

Ratings and reviews

5.0
2 reviews

About the author

SVG and Canvas (2D or WebGL) represent the different ways to create graphics on a web application programmatically.

​​​​​​​

Unlike Canvas, SVG is based solely on XML, a markup language like HTML. You do not need to use JavaScript to create an SVG image.


On the other hand, Canvas, 2D or WebGL, is based on JavaScript. Games and maps have been developed with Canvas. 


While a canvas lacks many SVG features like object-level event-driven interactivity, a canvas provides per-pixel control of the graphic.


SVG is faster when rendering large objects, but slower when rendering many objects. A canvas allows you to display the webcam capture, letting you take and save a photo with it.


Covering every language construct, keyword, and function, this book attempts to provide a complete guide to web graphics based on these technologies.


Have fun!


Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.