setTint 设置动画色调
setTint
类型: MethodDeclaration
所属类: Trigger
定义位置: trigger.ts
描述
设置动画色调
参数 tint: 动画色调属性选项{red?: -255255, green?: -255255, blue?: -255255, gray?: 0255}
参数 easingId: 过渡曲线ID
参数 duration: 持续时间(毫秒)
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| tint | ImageTintOptions | - | - | 
| easingId | string | - | '' | 
| duration | number | - | n0 | 
返回值
类型: void
源代码
位置: 第 201 行
public setTint(tint: ImageTintOptions, easingId: string = '', duration: number = 0): void {
    this.animation?.setTint('trigger-tint', this.updaters, tint, easingId, duration)
  }
文档生成时间:2025/7/21 20:53:39