XML technologies / SVG / Using complex graphic elements and formatting / Using paths correctly / Creating Bézier curves

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

If you know a vector graphics program, you may have encountered Bézier curves: curves drawn between two points and then bent. In Paint Shop Pro, for example, this looks as follows.

Bending a Bézier curve

Figure: Bending a Bézier curve.

This method makes smooth curves easy to draw. SVG also offers several types of these curves.

Their syntax is not always simple and usually needs several parameters. SVG therefore provides shorthand forms of the main commands. The command S is shorthand for the C command, and T is shorthand for Q. Some command parameters are omitted to shorten the input.

   

   

 

 

 

back to top