Skip to content

@miyue-mma/shared / eLinearGradient

函数: eLinearGradient()

ts
function eLinearGradient(
   x1, 
   y1, 
   x2, 
   y2, 
   colors?, 
   cord?): graphic.LinearGradient

线性渐变

参数

x1

number

y1

number

x2

number

y2

number

colors?

GradientColorStop[] | string[]

cord?

boolean

返回

graphic.LinearGradient

Released under the MIT License.