@next2d/filters 1.14.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/BevelFilter.d.ts +254 -0
  4. package/dist/BevelFilter.js +490 -0
  5. package/dist/BitmapFilter.d.ts +75 -0
  6. package/dist/BitmapFilter.js +95 -0
  7. package/dist/BlurFilter.d.ts +150 -0
  8. package/dist/BlurFilter.js +371 -0
  9. package/dist/ColorMatrixFilter.d.ts +116 -0
  10. package/dist/ColorMatrixFilter.js +179 -0
  11. package/dist/ConvolutionFilter.d.ts +210 -0
  12. package/dist/ConvolutionFilter.js +366 -0
  13. package/dist/DisplacementMapFilter.d.ts +211 -0
  14. package/dist/DisplacementMapFilter.js +368 -0
  15. package/dist/DropShadowFilter.d.ts +240 -0
  16. package/dist/DropShadowFilter.js +461 -0
  17. package/dist/GlowFilter.d.ts +204 -0
  18. package/dist/GlowFilter.js +356 -0
  19. package/dist/GradientBevelFilter.d.ts +243 -0
  20. package/dist/GradientBevelFilter.js +476 -0
  21. package/dist/GradientGlowFilter.d.ts +243 -0
  22. package/dist/GradientGlowFilter.js +466 -0
  23. package/dist/index.d.ts +10 -0
  24. package/dist/index.js +10 -0
  25. package/dist/interface/AttachmentImpl.d.ts +11 -0
  26. package/dist/interface/AttachmentImpl.js +1 -0
  27. package/dist/interface/BitmapDataChannelImpl.d.ts +1 -0
  28. package/dist/interface/BitmapDataChannelImpl.js +1 -0
  29. package/dist/interface/BitmapFilterTypeImpl.d.ts +1 -0
  30. package/dist/interface/BitmapFilterTypeImpl.js +1 -0
  31. package/dist/interface/BoundsImpl.d.ts +6 -0
  32. package/dist/interface/BoundsImpl.js +1 -0
  33. package/dist/interface/DisplacementMapFilterModeImpl.d.ts +1 -0
  34. package/dist/interface/DisplacementMapFilterModeImpl.js +1 -0
  35. package/dist/interface/FilterQualityImpl.d.ts +1 -0
  36. package/dist/interface/FilterQualityImpl.js +1 -0
  37. package/package.json +38 -0
@@ -0,0 +1,150 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import type { FilterQualityImpl } from "./interface/FilterQualityImpl";
3
+ import type { BoundsImpl } from "./interface/BoundsImpl";
4
+ import type { CanvasToWebGLContext } from "@next2d/webgl";
5
+ /**
6
+ * BlurFilter クラスを使用すると、表示オブジェクトにぼかし効果を適用できます。
7
+ * ぼかし効果は、イメージの細部をぼかします。ソフトフォーカスがかかっているように見えるぼかしから、
8
+ * 半透明ガラスを通してイメージを見るようにかすんで見えるガウスぼかしまで作成できます。
9
+ * このフィルターの quality プロパティを低く設定すると、ソフトフォーカスがかかっているように見えるぼかしになります。
10
+ * quality プロパティを高く設定すると、ガウスぼかしフィルターに似たものになります。
11
+ *
12
+ * The BlurFilter class lets you apply a blur visual effect to display objects.
13
+ * A blur effect softens the details of an image.
14
+ * You can produce blurs that range from a softly unfocused look to a Gaussian blur,
15
+ * a hazy appearance like viewing an image through semi-opaque glass.
16
+ * When the quality property of this filter is set to low, the result is a softly unfocused look.
17
+ * When the quality property is set to high, it approximates a Gaussian blur filter.
18
+ *
19
+ * @class
20
+ * @memberOf next2d.filters
21
+ * @extends BitmapFilter
22
+ */
23
+ export declare class BlurFilter extends BitmapFilter {
24
+ private _$blurX;
25
+ private _$blurY;
26
+ private _$quality;
27
+ /**
28
+ * @param {number} [blur_x=4]
29
+ * @param {number} [blur_y=4]
30
+ * @param {int} [quality=1]
31
+ *
32
+ * @constructor
33
+ * @public
34
+ */
35
+ constructor(blur_x?: number, blur_y?: number, quality?: FilterQualityImpl);
36
+ /**
37
+ * @description 指定されたクラスのストリングを返します。
38
+ * Returns the string representation of the specified class.
39
+ *
40
+ * @return {string}
41
+ * @default [class BlurFilter]
42
+ * @method
43
+ * @static
44
+ */
45
+ static toString(): string;
46
+ /**
47
+ * @description 指定されたクラスの空間名を返します。
48
+ * Returns the space name of the specified class.
49
+ *
50
+ * @return {string}
51
+ * @default next2d.filters.BlurFilter
52
+ * @const
53
+ * @static
54
+ */
55
+ static get namespace(): string;
56
+ /**
57
+ * @description 指定されたオブジェクトのストリングを返します。
58
+ * Returns the string representation of the specified object.
59
+ *
60
+ * @return {string}
61
+ * @default [object BlurFilter]
62
+ * @method
63
+ * @public
64
+ */
65
+ toString(): string;
66
+ /**
67
+ * @description 指定されたオブジェクトの空間名を返します。
68
+ * Returns the space name of the specified object.
69
+ *
70
+ * @return {string}
71
+ * @default next2d.filters.BlurFilter
72
+ * @const
73
+ * @public
74
+ */
75
+ get namespace(): string;
76
+ /**
77
+ * @return {array}
78
+ * @private
79
+ */
80
+ static get STEP(): number[];
81
+ /**
82
+ * @description 水平方向のぼかし量。
83
+ * The amount of horizontal blur.
84
+ *
85
+ * @member {number}
86
+ * @default 4
87
+ * @public
88
+ */
89
+ get blurX(): number;
90
+ set blurX(blur_x: number);
91
+ /**
92
+ * @description 垂直方向のぼかし量。
93
+ * The amount of vertical blur.
94
+ *
95
+ * @member {number}
96
+ * @default 4
97
+ * @public
98
+ */
99
+ get blurY(): number;
100
+ set blurY(blur_y: number);
101
+ /**
102
+ * @description ぼかしの実行回数です。
103
+ * The number of times to perform the blur.
104
+ *
105
+ * @member {number}
106
+ * @default 1
107
+ * @public
108
+ */
109
+ get quality(): FilterQualityImpl;
110
+ set quality(quality: FilterQualityImpl);
111
+ /**
112
+ * @description オブジェクトのコピーを返します。
113
+ * Returns a copy of this filter object.
114
+ *
115
+ * @return {BlurFilter}
116
+ * @method
117
+ * @public
118
+ */
119
+ clone(): BlurFilter;
120
+ /**
121
+ * @return {array}
122
+ * @method
123
+ * @public
124
+ */
125
+ _$toArray(): any[];
126
+ /**
127
+ * @param {object} bounds
128
+ * @param {number} [x_scale=0]
129
+ * @param {number} [y_scale=0]
130
+ * @return {object}
131
+ * @method
132
+ * @private
133
+ */
134
+ _$generateFilterRect(bounds: BoundsImpl, x_scale?: number, y_scale?: number): BoundsImpl;
135
+ /**
136
+ * @return {boolean}
137
+ * @method
138
+ * @private
139
+ */
140
+ _$canApply(): boolean;
141
+ /**
142
+ * @param {CanvasToWebGLContext} context
143
+ * @param {Float32Array} matrix
144
+ * @param {boolean} [removed=true]
145
+ * @return {WebGLTexture}
146
+ * @method
147
+ * @private
148
+ */
149
+ _$applyFilter(context: CanvasToWebGLContext, matrix: Float32Array, removed?: boolean): WebGLTexture;
150
+ }
@@ -0,0 +1,371 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import { $Math, $getArray, $clamp, $getBoundsObject, $poolBoundsObject } from "@next2d/share";
3
+ /**
4
+ * BlurFilter クラスを使用すると、表示オブジェクトにぼかし効果を適用できます。
5
+ * ぼかし効果は、イメージの細部をぼかします。ソフトフォーカスがかかっているように見えるぼかしから、
6
+ * 半透明ガラスを通してイメージを見るようにかすんで見えるガウスぼかしまで作成できます。
7
+ * このフィルターの quality プロパティを低く設定すると、ソフトフォーカスがかかっているように見えるぼかしになります。
8
+ * quality プロパティを高く設定すると、ガウスぼかしフィルターに似たものになります。
9
+ *
10
+ * The BlurFilter class lets you apply a blur visual effect to display objects.
11
+ * A blur effect softens the details of an image.
12
+ * You can produce blurs that range from a softly unfocused look to a Gaussian blur,
13
+ * a hazy appearance like viewing an image through semi-opaque glass.
14
+ * When the quality property of this filter is set to low, the result is a softly unfocused look.
15
+ * When the quality property is set to high, it approximates a Gaussian blur filter.
16
+ *
17
+ * @class
18
+ * @memberOf next2d.filters
19
+ * @extends BitmapFilter
20
+ */
21
+ export class BlurFilter extends BitmapFilter {
22
+ /**
23
+ * @param {number} [blur_x=4]
24
+ * @param {number} [blur_y=4]
25
+ * @param {int} [quality=1]
26
+ *
27
+ * @constructor
28
+ * @public
29
+ */
30
+ constructor(blur_x = 4, blur_y = 4, quality = 1) {
31
+ super();
32
+ /**
33
+ * @type {number}
34
+ * @default 4
35
+ * @private
36
+ */
37
+ this._$blurX = 4;
38
+ /**
39
+ * @type {number}
40
+ * @default 4
41
+ * @private
42
+ */
43
+ this._$blurY = 4;
44
+ /**
45
+ * @type {number}
46
+ * @default 1
47
+ * @private
48
+ */
49
+ this._$quality = 1;
50
+ // setup
51
+ this.blurX = blur_x;
52
+ this.blurY = blur_y;
53
+ this.quality = quality;
54
+ }
55
+ /**
56
+ * @description 指定されたクラスのストリングを返します。
57
+ * Returns the string representation of the specified class.
58
+ *
59
+ * @return {string}
60
+ * @default [class BlurFilter]
61
+ * @method
62
+ * @static
63
+ */
64
+ static toString() {
65
+ return "[class BlurFilter]";
66
+ }
67
+ /**
68
+ * @description 指定されたクラスの空間名を返します。
69
+ * Returns the space name of the specified class.
70
+ *
71
+ * @return {string}
72
+ * @default next2d.filters.BlurFilter
73
+ * @const
74
+ * @static
75
+ */
76
+ static get namespace() {
77
+ return "next2d.filters.BlurFilter";
78
+ }
79
+ /**
80
+ * @description 指定されたオブジェクトのストリングを返します。
81
+ * Returns the string representation of the specified object.
82
+ *
83
+ * @return {string}
84
+ * @default [object BlurFilter]
85
+ * @method
86
+ * @public
87
+ */
88
+ toString() {
89
+ return "[object BlurFilter]";
90
+ }
91
+ /**
92
+ * @description 指定されたオブジェクトの空間名を返します。
93
+ * Returns the space name of the specified object.
94
+ *
95
+ * @return {string}
96
+ * @default next2d.filters.BlurFilter
97
+ * @const
98
+ * @public
99
+ */
100
+ get namespace() {
101
+ return "next2d.filters.BlurFilter";
102
+ }
103
+ /**
104
+ * @return {array}
105
+ * @private
106
+ */
107
+ static get STEP() {
108
+ return [0.5, 1.05, 1.4, 1.55, 1.75, 1.9, 2, 2.15, 2.2, 2.3, 2.5, 3, 3, 3.5, 3.5];
109
+ }
110
+ /**
111
+ * @description 水平方向のぼかし量。
112
+ * The amount of horizontal blur.
113
+ *
114
+ * @member {number}
115
+ * @default 4
116
+ * @public
117
+ */
118
+ get blurX() {
119
+ return this._$blurX;
120
+ }
121
+ set blurX(blur_x) {
122
+ blur_x = $clamp(+blur_x, 0, 255, 0);
123
+ if (blur_x !== this._$blurX) {
124
+ this._$blurX = blur_x;
125
+ this._$doChanged();
126
+ }
127
+ }
128
+ /**
129
+ * @description 垂直方向のぼかし量。
130
+ * The amount of vertical blur.
131
+ *
132
+ * @member {number}
133
+ * @default 4
134
+ * @public
135
+ */
136
+ get blurY() {
137
+ return this._$blurY;
138
+ }
139
+ set blurY(blur_y) {
140
+ blur_y = $clamp(+blur_y, 0, 255, 0);
141
+ if (blur_y !== this._$blurY) {
142
+ this._$blurY = blur_y;
143
+ this._$doChanged();
144
+ }
145
+ }
146
+ /**
147
+ * @description ぼかしの実行回数です。
148
+ * The number of times to perform the blur.
149
+ *
150
+ * @member {number}
151
+ * @default 1
152
+ * @public
153
+ */
154
+ get quality() {
155
+ return this._$quality;
156
+ }
157
+ set quality(quality) {
158
+ quality = $clamp(quality | 0, 0, 15, 1);
159
+ if (quality !== this._$quality) {
160
+ this._$quality = quality;
161
+ this._$doChanged();
162
+ }
163
+ }
164
+ /**
165
+ * @description オブジェクトのコピーを返します。
166
+ * Returns a copy of this filter object.
167
+ *
168
+ * @return {BlurFilter}
169
+ * @method
170
+ * @public
171
+ */
172
+ clone() {
173
+ return new BlurFilter(this._$blurX, this._$blurY, this._$quality);
174
+ }
175
+ /**
176
+ * @return {array}
177
+ * @method
178
+ * @public
179
+ */
180
+ _$toArray() {
181
+ return $getArray(1, this._$blurX, this._$blurY, this._$quality);
182
+ }
183
+ /**
184
+ * @param {object} bounds
185
+ * @param {number} [x_scale=0]
186
+ * @param {number} [y_scale=0]
187
+ * @return {object}
188
+ * @method
189
+ * @private
190
+ */
191
+ _$generateFilterRect(bounds, x_scale = 0, y_scale = 0) {
192
+ const clone = $getBoundsObject(bounds.xMin, bounds.xMax, bounds.yMin, bounds.yMax);
193
+ if (!this._$quality) {
194
+ return clone;
195
+ }
196
+ const step = BlurFilter.STEP[this._$quality - 1];
197
+ let dx = 0 >= this._$blurX ? 1 : this._$blurX * step;
198
+ let dy = 0 >= this._$blurY ? 1 : this._$blurY * step;
199
+ if (x_scale) {
200
+ dx *= x_scale;
201
+ }
202
+ else {
203
+ dx = $Math.round(dx);
204
+ }
205
+ if (y_scale) {
206
+ dy *= y_scale;
207
+ }
208
+ else {
209
+ dy = $Math.round(dy);
210
+ }
211
+ clone.xMin -= dx;
212
+ clone.xMax += dx * 2;
213
+ clone.yMin -= dy;
214
+ clone.yMax += dy * 2;
215
+ return clone;
216
+ }
217
+ /**
218
+ * @return {boolean}
219
+ * @method
220
+ * @private
221
+ */
222
+ _$canApply() {
223
+ return this._$blurX !== 0 && this._$blurY !== 0;
224
+ }
225
+ /**
226
+ * @param {CanvasToWebGLContext} context
227
+ * @param {Float32Array} matrix
228
+ * @param {boolean} [removed=true]
229
+ * @return {WebGLTexture}
230
+ * @method
231
+ * @private
232
+ */
233
+ _$applyFilter(context, matrix, removed = true) {
234
+ this._$updated = false;
235
+ const manager = context.frameBuffer;
236
+ const currentAttachment = manager.currentAttachment;
237
+ const baseTexture = manager
238
+ .getTextureFromCurrentAttachment();
239
+ if (!this._$canApply()) {
240
+ if (removed) {
241
+ return baseTexture;
242
+ }
243
+ return manager
244
+ .createTextureFromCurrentAttachment();
245
+ }
246
+ // matrix to scale
247
+ const xScale = $Math.sqrt(matrix[0] * matrix[0] + matrix[1] * matrix[1]);
248
+ const yScale = $Math.sqrt(matrix[2] * matrix[2] + matrix[3] * matrix[3]);
249
+ // after size
250
+ const baseBounds = $getBoundsObject(0, baseTexture.width, 0, baseTexture.height);
251
+ const filterBounds = this
252
+ ._$generateFilterRect(baseBounds, xScale, yScale);
253
+ $poolBoundsObject(baseBounds);
254
+ const width = $Math.ceil(filterBounds.xMax) | 0;
255
+ const height = $Math.ceil(filterBounds.yMax) | 0;
256
+ const offsetX = $Math.ceil($Math.abs(filterBounds.xMin) + $Math.abs(width - filterBounds.xMax) * 0.5);
257
+ const offsetY = $Math.ceil($Math.abs(filterBounds.yMin) + $Math.abs(height - filterBounds.yMax) * 0.5);
258
+ // set offset xy
259
+ context._$offsetX = offsetX + context._$offsetX;
260
+ context._$offsetY = offsetY + context._$offsetY;
261
+ const baseBlurX = this._$blurX * xScale;
262
+ const baseBlurY = this._$blurY * yScale;
263
+ let bufferScaleX = 1;
264
+ let bufferScaleY = 1;
265
+ if (baseBlurX > 128) {
266
+ bufferScaleX = 0.0625;
267
+ }
268
+ else if (baseBlurX > 64) {
269
+ bufferScaleX = 0.125;
270
+ }
271
+ else if (baseBlurX > 32) {
272
+ bufferScaleX = 0.25;
273
+ }
274
+ else if (baseBlurX > 16) {
275
+ bufferScaleX = 0.5;
276
+ }
277
+ if (baseBlurY > 128) {
278
+ bufferScaleY = 0.0625;
279
+ }
280
+ else if (baseBlurY > 64) {
281
+ bufferScaleY = 0.125;
282
+ }
283
+ else if (baseBlurY > 32) {
284
+ bufferScaleY = 0.25;
285
+ }
286
+ else if (baseBlurY > 16) {
287
+ bufferScaleY = 0.5;
288
+ }
289
+ const bufferBlurX = baseBlurX * bufferScaleX;
290
+ const bufferBlurY = baseBlurY * bufferScaleY;
291
+ const bufferWidth = $Math.ceil(width * bufferScaleX);
292
+ const bufferHeight = $Math.ceil(height * bufferScaleY);
293
+ const attachment0 = manager
294
+ .createTextureAttachment(bufferWidth, bufferHeight);
295
+ const attachment1 = manager
296
+ .createTextureAttachment(bufferWidth, bufferHeight);
297
+ const attachments = [attachment0, attachment1];
298
+ let attachmentIndex = 0;
299
+ context._$bind(attachment0);
300
+ // draw
301
+ context.reset();
302
+ context.setTransform(bufferScaleX, 0, 0, bufferScaleY, 0, 0);
303
+ context.drawImage(baseTexture, offsetX, offsetY, baseTexture.width, baseTexture.height);
304
+ // set alpha
305
+ context.blend.toOneZero();
306
+ // execute
307
+ let targetTexture = manager.getTextureFromCurrentAttachment();
308
+ for (let q = 0; q < this._$quality; ++q) {
309
+ // draw blur x
310
+ if (this._$blurX > 0) {
311
+ attachmentIndex = (attachmentIndex + 1) % 2;
312
+ const xTexture = attachments[attachmentIndex];
313
+ context._$bind(xTexture);
314
+ context
315
+ ._$applyBlurFilter(targetTexture, true, bufferBlurX);
316
+ targetTexture = manager.getTextureFromCurrentAttachment();
317
+ }
318
+ // draw blur y
319
+ if (this._$blurY > 0) {
320
+ attachmentIndex = (attachmentIndex + 1) % 2;
321
+ const yTexture = attachments[attachmentIndex];
322
+ context._$bind(yTexture);
323
+ context
324
+ ._$applyBlurFilter(targetTexture, false, bufferBlurY);
325
+ targetTexture = manager.getTextureFromCurrentAttachment();
326
+ }
327
+ }
328
+ // reset alpha
329
+ context.blend.reset();
330
+ if (bufferScaleX !== 1 || bufferScaleY !== 1) {
331
+ const resultAttachment = manager
332
+ .createTextureAttachment(width, height);
333
+ context._$bind(resultAttachment);
334
+ context.reset();
335
+ context.imageSmoothingEnabled = true;
336
+ context.setTransform(1 / bufferScaleX, 0, 0, 1 / bufferScaleY, 0, 0);
337
+ context.drawImage(targetTexture, 0, 0, bufferWidth, bufferHeight);
338
+ targetTexture = manager.getTextureFromCurrentAttachment();
339
+ context.reset();
340
+ context.setTransform(1, 0, 0, 1, 0, 0);
341
+ manager
342
+ .releaseAttachment(attachments[0], true);
343
+ manager
344
+ .releaseAttachment(attachments[1], true);
345
+ if (removed) {
346
+ manager
347
+ .releaseAttachment(currentAttachment, true);
348
+ }
349
+ else {
350
+ manager
351
+ .releaseAttachment(resultAttachment, false);
352
+ }
353
+ }
354
+ else {
355
+ // 最終結果ではない方のAttachmentを解放する
356
+ manager
357
+ .releaseAttachment(attachments[(attachmentIndex + 1) % 2], true);
358
+ if (removed) {
359
+ // 適用前のAttachmentを解放する
360
+ manager
361
+ .releaseAttachment(currentAttachment, true);
362
+ }
363
+ else {
364
+ // 適用後のAttachmentを解放する
365
+ manager
366
+ .releaseAttachment(attachments[attachmentIndex], false);
367
+ }
368
+ }
369
+ return targetTexture;
370
+ }
371
+ }
@@ -0,0 +1,116 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import type { BoundsImpl } from "./interface/BoundsImpl";
3
+ import type { CanvasToWebGLContext } from "@next2d/webgl";
4
+ /**
5
+ * ColorMatrixFilter クラスを使用すると、表示オブジェクトにぼかし効果を適用できます。
6
+ * ぼかし効果は、イメージの細部をぼかします。ソフトフォーカスがかかっているように見えるぼかしから、
7
+ * 半透明ガラスを通してイメージを見るようにかすんで見えるガウスぼかしまで作成できます。
8
+ * このフィルターの quality プロパティを低く設定すると、ソフトフォーカスがかかっているように見えるぼかしになります。
9
+ * quality プロパティを高く設定すると、ガウスぼかしフィルターに似たものになります。
10
+ *
11
+ * The ColorMatrixFilter class lets you apply a blur visual effect to display objects.
12
+ * A blur effect softens the details of an image.
13
+ * You can produce blurs that range from a softly unfocused look to a Gaussian blur,
14
+ * a hazy appearance like viewing an image through semi-opaque glass.
15
+ * When the quality property of this filter is set to low, the result is a softly unfocused look.
16
+ * When the quality property is set to high, it approximates a Gaussian blur filter.
17
+ *
18
+ * @class
19
+ * @memberOf next2d.filters
20
+ * @extends BitmapFilter
21
+ */
22
+ export declare class ColorMatrixFilter extends BitmapFilter {
23
+ private _$matrix;
24
+ /**
25
+ * @param {array} [matrix=null]
26
+ *
27
+ * @constructor
28
+ * @public
29
+ */
30
+ constructor(matrix?: number[] | null);
31
+ /**
32
+ * @description 指定されたクラスのストリングを返します。
33
+ * Returns the string representation of the specified class.
34
+ *
35
+ * @return {string}
36
+ * @default [class ColorMatrixFilter]
37
+ * @method
38
+ * @static
39
+ */
40
+ static toString(): string;
41
+ /**
42
+ * @description 指定されたクラスの空間名を返します。
43
+ * Returns the space name of the specified class.
44
+ *
45
+ * @return {string}
46
+ * @default next2d.filters.ColorMatrixFilter
47
+ * @const
48
+ * @static
49
+ */
50
+ static get namespace(): string;
51
+ /**
52
+ * @description 指定されたオブジェクトのストリングを返します。
53
+ * Returns the string representation of the specified object.
54
+ *
55
+ * @return {string}
56
+ * @default [object ColorMatrixFilter]
57
+ * @method
58
+ * @public
59
+ */
60
+ toString(): string;
61
+ /**
62
+ * @description 指定されたオブジェクトの空間名を返します。
63
+ * Returns the space name of the specified object.
64
+ *
65
+ * @return {string}
66
+ * @default next2d.filters.ColorMatrixFilter
67
+ * @const
68
+ * @public
69
+ */
70
+ get namespace(): string;
71
+ /**
72
+ * @description 4×5 カラー変換用の20個のアイテムの配列
73
+ * An array of 20 items for 4x5 color transform.
74
+ *
75
+ * @member {array}
76
+ * @default null
77
+ * @public
78
+ */
79
+ get matrix(): number[];
80
+ set matrix(matrix: number[] | null);
81
+ /**
82
+ * @description オブジェクトのコピーを返します。
83
+ * Returns a copy of this filter object.
84
+ *
85
+ * @return {ColorMatrixFilter}
86
+ * @method
87
+ * @public
88
+ */
89
+ clone(): ColorMatrixFilter;
90
+ /**
91
+ * @return {array}
92
+ * @method
93
+ * @public
94
+ */
95
+ _$toArray(): any[];
96
+ /**
97
+ * @param {object} bounds
98
+ * @return {object}
99
+ * @method
100
+ * @private
101
+ */
102
+ _$generateFilterRect(bounds: BoundsImpl): BoundsImpl;
103
+ /**
104
+ * @return {boolean}
105
+ * @method
106
+ * @private
107
+ */
108
+ _$canApply(): boolean;
109
+ /**
110
+ * @param {CanvasToWebGLContext} context
111
+ * @return {WebGLTexture}
112
+ * @method
113
+ * @private
114
+ */
115
+ _$applyFilter(context: CanvasToWebGLContext): WebGLTexture;
116
+ }