The SpreadMethod class provides values for the `spreadMethod` parameter in the `beginGradientFill()` and `lineGradientStyle()` methods of the Graphics class.

The following example shows the same gradient fill using various spread methods:

## Index

### Enumeration members

- PAD
- REFLECT
- REPEAT

## Enumeration members

### PAD

PAD: = "pad"

- Defined in lib/openfl/display/SpreadMethod.d.ts:16

Specifies that the gradient use the pad spread method.

### REFLECT

REFLECT: = "reflect"

- Defined in lib/openfl/display/SpreadMethod.d.ts:21

Specifies that the gradient use the reflect spread method.

### REPEAT

REPEAT: = "repeat"

- Defined in lib/openfl/display/SpreadMethod.d.ts:26

Specifies that the gradient use the repeat spread method.

Generated using TypeDoc