openfl
Version:
A fast, productive library for 2D cross-platform development.
33 lines (25 loc) • 689 B
TypeScript
declare namespace openfl.display {
/**
* 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:
*/
export enum SpreadMethod {
/**
* Specifies that the gradient use the _pad_ spread method.
*/
PAD = "pad",
/**
* Specifies that the gradient use the _reflect_ spread method.
*/
REFLECT = "reflect",
/**
* Specifies that the gradient use the _repeat_ spread method.
*/
REPEAT = "repeat"
}
}
export default openfl.display.SpreadMethod;