CHAPTER 7
SVG and Perplexity
This chapter provides an assortment of SVG-based code samples that are generated by Perplexity based on prompts. Some of the code samples will be familiar: the difference is that almost all the code samples in this chapter are all generated by Perplexity.
The first portion of this chapter contains descriptions of the strengths and weaknesses of SVG, followed by its use cases, accessibility, and potential security issues. The second portion of this chapter contains examples of Perplexity generating linear gradients, radial gradients, and various SVG 2D shapes and gradients. You will also see how to render a bar chart in SVG. The third section shows you how to render quadratic Bezier curves and cubic Bezier curves, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access