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

4.20.11.1 FVG Rectangle

The "rect" is a rectangular vector shape, with some additional options.

Defining the Shape

Example: This creates a normal rectangle filled with white and bordered by red.

 
<rect x="0"
      y="0"
      width="10"
      height="10"
      stroke="#ff0000"
      fill="#ffffff" />

Differences from SVG

The FVG rect command differs from its SVG relative in the following ways:

Allowed Parameters

Name

Required

Example

Description

x

yes

x="0"

Sets the left x coordinate of the rectangle.

y

yes

y="0"

Sets the left y coordinate of the rectangle.

width

yes

width="100"

Sets the width of the rectangle.

height

yes

height="100"

Sets the height of the rectangle.

roundness

no

roundness="0.5"

A value greater than zero, but less than or equal to one. If this is present it means that the rectangle will have rounded corners. The higher this number, the more round the corners will be.

miter

no

miter="0.25"

A value greater than zero, but less than or equal to one. If this is present it means that the rectangle will have mitered corners. The higher this number, the more beveled the rectangle will be. If both `miter' and `roundness' are present, `roundness' takes precedence.

stroke

no

stroke="#ff0000"

Turns on stroking of the shape, and sets the color. If this is not present, the shape will not be stroked. Either this value or `fill' must be present or the shape will be invisible.

fill

no

fill="#ff0000"

Turns on filling of the shape, and sets the color. If this is not present, the shape will not be filled. Either this value or `stroke' must be present or the shape will be invisible.


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

This document was generated using texi2html 1.76.