[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.20.11 Flexible Vector Graphics

Flexible Vector Graphics (FVG) is a subset of Scalable Vector Graphics (SVG). FVG is the graphics system underlying the AWS2 Crystal Space embedded windowing system. It mirrors as closely as possible the SVG 1.1 specification, while omitting some of the more complex operations. The SVG 1.1 specification can be found here:

http://www.w3.org/TR/SVG/

This document defines the functionality of FVG and provides some notes about particular differences between SVG and FVG.

Defining a Shape

FVG should be included directly in AWS's XML definition files. Just as the normal definition files can use automation constructs, so too can FVG.

All FVG drawing code must be inside a "g" tag.

 
<g id="triangle_rect">
  <path d="M 100 100 L 300 100 L 200 300 z"
        fill="#ff0000" stroke="#00ff00" />
  <rect x="100" y="150"
        width="200" height="50"
        stroke="#0000ff" />
</g>

Differences from SVG

Limitations of FVG as compared to SVG include:

Features not provided by SVG, but supported by FVG include:

Basic Shapes

FVG includes all the same basic shapes as does SVG 1.1.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated using texi2html 1.76.