This book is all about programming Canvas. In addition to the basics of using Canvas, i-programmer author Ian Elliot goes into the skills that you need to make good use of these facilities. For example, a graphics application often needs to download or upload files, but exactly how to do this in a modern way is difficult to find out. If you do upload a file then you might want to work with it at the pixel level and this requires working with raw binary data. How do you do this in JavaScript, which tries hard to keep data types hidden from the programmer?
<ASIN:1871962625>
The book also covers how to keep graphic processes from bringing your application to a halt by keeping graphics on a separate thread or using the GPU to get the job done. Although most of the book is concerned with the standard 2d graphics context, the final chapters explain the use of WebGL with Canvas as a general purpose rendering engine, including how to use it for 3D graphics and for fast 2D graphics.
Author: Ian Elliot
Publisher: I/O Press
Date: September 2019
Pages: 316
ISBN: 9781871962628
Print: 1871962625
Kindle: B07XJQDS4Z
Audience: JavaScript developers
Level: Intermediate
Category: JavaScript
What you will learn:
-
The canvas element and the fundamental ideas of a path and its stroke and fill properties
-
Transformations – organizing and using unit shapes as the building blocks for complex graphics
-
Working with text including typography and SVG Text
-
Clipping, compositing and effects
-
The Image object as a source of bitmaps
-
Image loading and saving using async and await
-
Sprite-based animation using web workers and Offscreencanvas
-
Files blobs and the Fetch API
-
Image processing, filters and convolution
-
Using Canvas with WebGL for 3D graphics display
-
Using WebGL to implements fast 2D graphics
Also by Ian Elliot
Just JavaScript: An Idiomatic Approach
JavaScript Async: Events, Callbacks, Promises and Async Await
Just jQuery: Events, Async & AJAX
For recommendations of JavaScript books see JavaScript Beginners Book Choice and Advanced JavaScript Book Choices in our Programmer's Bookshelf section.
For more Book Watch just click.
Book Watch is I Programmer's listing of new books and is compiled using publishers' publicity material. It is not to be read as a review where we provide an independent assessment. Some, but by no means all, of the books in Book Watch are eventually reviewed.
To have new titles included in Book Watch contact BookWatch@i-programmer.info
Follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.
Professional C++, 6th Ed (Wiley)
Author: Marc Gregoire
Publisher: Wiley
Date: February 2024
Pages: 1376
ISBN:978-1394193172
Print:1394193173
Kindle:B0CRXK5191
Audience: C++ developers
Rating: 4
Reviewer: Mike James
Can a book on C++ get any bigger and does it need to?
Data Structures & Algorithms in Python
Author: Dr. John Canning, Alan Broder and Robert Lafore
Publisher: Addison-Wesley
Date: October 2022
Pages: 928
ISBN:978-0134855684
Print: 013485568X
Kindle: B0B1WJF1K9
Audience: Python developers
Rating: 4
Reviewer: Mike James
Data structures in Python - a good idea!