# Rectangle Pattern

[Common Attributes](https://scenegroup.gitbook.io/cavalry/nodes/shapes/common-attributes) +

**Pattern Mode** - set the distribution for the pattern:

* **Line** - distribute the rectangles along a line.
  * **Use Fixed Size** - when checked the bars will be scaled to fit the **Size**.
  * **Size** - set a fixed size for the Shape.
  * **Gap Type** - set the gap style:
    * **Alternating** - each gap is set by the **Bar Size**. In this mode, **Count** includes rectangles and gaps.
    * **Fixed Width** - each gap is set by the **Fixed Gap Width**.  In this mode, the gaps are in addition to the **Count**.
  * **Fixed Gap Width** - set a fixed width for each gap.
  * **Horizontal Alignment** -&#x20;
* **Ring** - distribute the rectangles along a ring.
  * **Outer Radius** - set the outer radius of the ring.
  * **Inner Radius** - set the inner radius of the ring.
  * **Start Angle** - set the start angle.
  * **End Angle** - set the end angle.
  * **Gap Type** - set the gap style:
    * **Alternating** - each gap is set by the **Bar Size**. In this mode, **Count** includes rectangles and gaps.
    * **Fixed Angle** - each gap is set by the **Fixed Gap Angle.** In this mode, the gaps are in addition to the **Count**.
  * **Fixed Gap Angle** - set a fixed angle for each gap.

**Count** - set the total number of rectangles and gaps.

**Bar Size** - set the size of the rectangles.

{% hint style="info" %}
Note that a 'gap' is actually an empty rectangle so connecting, for example, a [Random Behaviour](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/random) to the **Bar Size** will create randomly sized rectangles and gaps.
{% endhint %}
