LineGradientDecoration class
LineGradientDecoration是Gesti中用于定义矩形组件样式的渐变效果类。
Methods(方法)
| 方法 | 参数 | 描述 |
|---|---|---|
| constructor | option:LineGradientDecorationOption | 构造函数参数,渐变样式选项 |
LineGradientDecorationOption
| 属性 | 类型 | 描述 |
|---|---|---|
| begin | Alignment | 渐变开始的位置 |
| end | Alignment | 渐变结束的位置 |
| colors | Array<string> | 传入颜色数组,例如 ['red','orange','yellow'] |