# Interface: SpriteDrawOptions

Defined in: spryte/dist/draw.d.ts:17

## Properties

### alpha?

> `optional` **alpha?**: `number`

Defined in: spryte/dist/draw.d.ts:27

Multiplied with the global alpha.

***

### flash?

> `optional` **flash?**: `number`

Defined in: spryte/dist/draw.d.ts:31

0..1 mix toward white, e.g. hit flashes.

***

### flipX?

> `optional` **flipX?**: `boolean`

Defined in: spryte/dist/draw.d.ts:24

***

### flipY?

> `optional` **flipY?**: `boolean`

Defined in: spryte/dist/draw.d.ts:25

***

### origin?

> `optional` **origin?**: readonly \[`number`, `number`\]

Defined in: spryte/dist/draw.d.ts:19

Anchor as a fraction of the frame size. Default [0.5, 0.5] (centre).

***

### rotation?

> `optional` **rotation?**: `number`

Defined in: spryte/dist/draw.d.ts:23

Radians.

***

### scaleX?

> `optional` **scaleX?**: `number`

Defined in: spryte/dist/draw.d.ts:20

***

### scaleY?

> `optional` **scaleY?**: `number`

Defined in: spryte/dist/draw.d.ts:21

***

### smooth?

> `optional` **smooth?**: `boolean`

Defined in: spryte/dist/draw.d.ts:33

Linear filtering for this sprite. Default: the game's setting (off when `pixelArt`).

***

### tint?

> `optional` **tint?**: [`Color`](../type-aliases/Color.md)

Defined in: spryte/dist/draw.d.ts:29

Colour multiplier. Default white.

***

### user?

> `optional` **user?**: `number`

Defined in: spryte/dist/draw.d.ts:39

A float a custom shader reads as `user()` for this sprite (since 0.16): a share, a variant, a flag. Default 0.
It stays in the batch, as `draw.sprites`' `each.user` does. WebGL2 only, and only inside `withShader`; without a
custom shader, and on the Canvas 2D fallback, it does nothing.

***

### user2?

> `optional` **user2?**: `number`

Defined in: spryte/dist/draw.d.ts:41

A second float, read as `user2()` (since 0.16). Default 0.
