Show:

annie.ColorFilter Class

Extends annie.AObject
Defined in: libs/Filters.js:118
Module: annie

Available since 1.0.0

小游戏不支持 小程序不支持

普通变色滤镜

Methods

ColorFilter

(
  • colorArrays
)

Defined in libs/Filters.js:128

Parameters:

  • colorArrays Number

    颜色值数据

destroy

() Void public

Inherited from annie.AObject: libs/EventDispatcher.js:55

Available since 2.0.0

销毁一个对象 销毁之前一定要做完其他善后工作,否则有可能会出错

Returns:

Void:

drawFilter

(
  • imageData
)
public

Defined in libs/Filters.js:217

Available since 1.0.0

绘画滤镜效果

Parameters:

toString

() String public

Defined in libs/Filters.js:238

Available since 1.0.0

获取滤镜的字符串表现形式以方便比较两个滤镜是否效果一样

Returns:

Properties

alphaMultiplier

Number public

Defined in libs/Filters.js:182

Available since 1.0.0

alphaOffset

Number public

Defined in libs/Filters.js:190

Available since 1.0.0

blueMultiplier

Number public

Defined in libs/Filters.js:166

Available since 1.0.0

blueOffset

Number public

Defined in libs/Filters.js:174

Available since 1.0.0

greenMultiplier

Number public

Defined in libs/Filters.js:150

Available since 1.0.0

greenOffset

Number public

Defined in libs/Filters.js:158

Available since 1.0.0

instanceId

Number public

Inherited from annie.AObject: libs/EventDispatcher.js:23

Available since 1.0.0

每一个annie引擎对象都会有一个唯一的id码。

Example:

 //获取 annie引擎类对象唯一码
 console.log(this.instanceId);

instanceType

String public

Inherited from annie.AObject: libs/EventDispatcher.js:41

Available since 1.0.3

每一个annie类都有一个实例类型字符串,通过这个字符串,你能知道这个实例是从哪个类实例而来

redMultiplier

Number public

Defined in libs/Filters.js:134

Available since 1.0.0

redOffset

Number public

Defined in libs/Filters.js:142

Available since 1.0.0

type

String public

Defined in libs/Filters.js:198

Available since 1.0.0