> For the complete documentation index, see [llms.txt](https://api.lampix.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.lampix.co/application-development/lampixjs/api/helpers.rectangle.md).

# .helpers.rectangle

Create a shape object for a watcher descriptor.

## Returns

```javascript
{
  type: 'rectangle',
  data: {
    posX: number,
    posY: number,
    width: number,
    height: number
  }
}
```

## Example

**NOTE** that all of the ways to create a button specified below are equivalent.

```javascript
import lampix from '@lampix/core';

const callback = ([recognizedObject]) => {
  if (Number(recognizedObject.classTag) === 1) {
    console.log('yay!');
  } else {
    console.log('nay!');
  }
};

const watcher = {
  name: 'NeuralNetworkClassifier',
  shape: lampix.helpers.rectangle(50, 50, 50, 50),
  onClassification: callback,
  params: {
    neural_network_name: 'fingers'
  }
};
```
