# Class: Trail

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

Fading polyline behind a moving point (dashes, projectiles, swipes).

## Constructors

### Constructor

> **new Trail**(`length?`, `color?`, `width?`): `Trail`

Defined in: [trail.ts:8](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L8)

#### Parameters

##### length?

`number` = `12`

##### color?

`string` = `"#fff"`

##### width?

`number` = `3`

#### Returns

`Trail`

## Properties

### color

> **color**: `string` = `"#fff"`

Defined in: [trail.ts:10](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L10)

***

### length

> `readonly` **length**: `number` = `12`

Defined in: [trail.ts:9](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L9)

***

### width

> **width**: `number` = `3`

Defined in: [trail.ts:11](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L11)

## Methods

### clear()

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

Defined in: [trail.ts:23](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L23)

#### Returns

`void`

***

### draw()

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

Defined in: [trail.ts:28](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L28)

#### Parameters

##### draw

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

#### Returns

`void`

***

### push()

> **push**(`x`, `y`): `void`

Defined in: [trail.ts:14](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/juice/src/trail.ts#L14)

#### Parameters

##### x

`number`

##### y

`number`

#### Returns

`void`
