# LensFlareElementDesc

Interface · category: Other

Source: https://github.com/playcanvas/engine/blob/64089771243fe28a9b9d2b4de538b99b07c75097/src/extras/effects/lens-flare/lens-flare.js#L13

## Properties

### aspect

```ts
aspect?: number
```

The width of the element relative to its height. Defaults to 1.

### autoRotate

```ts
autoRotate?: boolean
```

Whether the element is rotated to align with the axis, for
streaks. Defaults to false.

### color

```ts
color?: number[] | Color
```

The color of the element, as a Color or an array of three
numbers. Defaults to white.

### count

```ts
count?: number
```

The number of copies of the element, spread along the axis around
its offset - a train of ghosts. Defaults to 1.

### intensity

```ts
intensity?: number
```

The brightness of the element. Defaults to 1.

### offset

```ts
offset?: number
```

The position along the axis: 0 at the source, 1 at the center of
the screen, 2 mirrored across the center, negative beyond the source. Defaults to 0.

### rotation

```ts
rotation?: number
```

The rotation of the element, in degrees. Defaults to 0.

### shape

```ts
shape: string
```

The name of the shape, in the shape library of the
[LensFlareEffect](https://api.playcanvas.com/engine/classes/LensFlareEffect.md) the flare is added to.

### size

```ts
size?: number
```

The height of the element, as a fraction of the screen height.
Defaults to 0.1.

### spread

```ts
spread?: number
```

The distance along the axis the copies are spread over, in the
units of the offset. Defaults to 0.
