# Class: Particles

Defined in: [particles.ts:47](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L47)

## Constructors

### Constructor

> **new Particles**(`random?`, `max?`): `Particles`

Defined in: [particles.ts:52](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L52)

#### Parameters

##### random?

[`RandomSource`](../type-aliases/RandomSource.md) = `Math.random`

Supply the game's seeded RNG for reproducible effects.

##### max?

`number` = `2000`

#### Returns

`Particles`

## Properties

### max

> `readonly` **max**: `number` = `2000`

Defined in: [particles.ts:54](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L54)

## Accessors

### count

#### Get Signature

> **get** **count**(): `number`

Defined in: [particles.ts:57](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L57)

##### Returns

`number`

## Methods

### clear()

> **clear**(): `void`

Defined in: [particles.ts:125](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L125)

#### Returns

`void`

***

### draw()

> **draw**(`draw`): `void`

Defined in: [particles.ts:107](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L107)

Draw in the current transform (e.g. inside `draw.withCamera`). Additive particles batch together.

#### Parameters

##### draw

[`DrawLike`](../interfaces/DrawLike.md)

#### Returns

`void`

***

### emit()

> **emit**(`o`): `void`

Defined in: [particles.ts:61](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L61)

#### Parameters

##### o

[`EmitOptions`](../interfaces/EmitOptions.md)

#### Returns

`void`

***

### update()

> **update**(`dt`): `void`

Defined in: [particles.ts:86](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/particles.ts#L86)

#### Parameters

##### dt

`number`

#### Returns

`void`
