September 2024
Beginner to intermediate
985 pages
35h 37m
English
In this chapter, you'll learn about two different technologies for creating images and graphics dynamically using JavaScript.
For the creation of images or the drawing of graphics, two different technologies are available in JavaScript (or in the browser): first, the so-called Canvas API, through which it’s possible to "draw" via JavaScript on a previously defined drawing surface, and second, the Scalable Vector Graphics (SVG) format, which enables the declarative definition of vector graphics that can be interpreted and displayed by all modern browsers. Because this format is an XML format, you can also create SVG graphics dynamically via JavaScript as usual using the DOM API.
Read now
Unlock full access