etro 0.8.0 → 0.8.3

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 (97) hide show
  1. package/.github/workflows/nodejs.yml +3 -1
  2. package/.github/workflows/shipjs-trigger.yml +29 -0
  3. package/CHANGELOG.md +36 -13
  4. package/CODE_OF_CONDUCT.md +5 -5
  5. package/CONTRIBUTING.md +22 -72
  6. package/README.md +2 -2
  7. package/dist/effect/base.d.ts +14 -1
  8. package/dist/etro-cjs.js +189 -230
  9. package/dist/etro-iife.js +189 -230
  10. package/dist/layer/base.d.ts +13 -0
  11. package/eslint.conf.js +2 -1
  12. package/eslint.test-conf.js +1 -0
  13. package/examples/application/readme-screenshot.html +4 -8
  14. package/examples/application/video-player.html +3 -4
  15. package/examples/introduction/effects.html +23 -4
  16. package/karma.conf.js +4 -2
  17. package/package.json +8 -4
  18. package/scripts/gen-effect-samples.html +0 -3
  19. package/ship.config.js +80 -0
  20. package/src/effect/base.ts +29 -10
  21. package/src/effect/gaussian-blur.ts +10 -10
  22. package/src/effect/pixelate.ts +1 -2
  23. package/src/effect/shader.ts +18 -22
  24. package/src/effect/stack.ts +8 -4
  25. package/src/effect/transform.ts +13 -14
  26. package/src/event.ts +8 -14
  27. package/src/layer/audio-source.ts +16 -14
  28. package/src/layer/audio.ts +1 -2
  29. package/src/layer/base.ts +26 -7
  30. package/src/layer/visual.ts +11 -6
  31. package/src/movie.ts +70 -64
  32. package/src/util.ts +50 -57
  33. package/docs/effect.js.html +0 -1215
  34. package/docs/event.js.html +0 -145
  35. package/docs/index.html +0 -81
  36. package/docs/index.js.html +0 -92
  37. package/docs/layer.js.html +0 -888
  38. package/docs/module-effect-GaussianBlurComponent.html +0 -345
  39. package/docs/module-effect.Brightness.html +0 -339
  40. package/docs/module-effect.Channels.html +0 -319
  41. package/docs/module-effect.ChromaKey.html +0 -611
  42. package/docs/module-effect.Contrast.html +0 -339
  43. package/docs/module-effect.EllipticalMask.html +0 -200
  44. package/docs/module-effect.GaussianBlur.html +0 -202
  45. package/docs/module-effect.GaussianBlurHorizontal.html +0 -242
  46. package/docs/module-effect.GaussianBlurVertical.html +0 -242
  47. package/docs/module-effect.Pixelate.html +0 -330
  48. package/docs/module-effect.Shader.html +0 -1227
  49. package/docs/module-effect.Stack.html +0 -406
  50. package/docs/module-effect.Transform.Matrix.html +0 -193
  51. package/docs/module-effect.Transform.html +0 -1174
  52. package/docs/module-effect.html +0 -148
  53. package/docs/module-event.html +0 -473
  54. package/docs/module-index.html +0 -186
  55. package/docs/module-layer-Media.html +0 -1116
  56. package/docs/module-layer-MediaMixin.html +0 -164
  57. package/docs/module-layer.Audio.html +0 -1188
  58. package/docs/module-layer.Base.html +0 -629
  59. package/docs/module-layer.Image.html +0 -1421
  60. package/docs/module-layer.Text.html +0 -1731
  61. package/docs/module-layer.Video.html +0 -1938
  62. package/docs/module-layer.Visual.html +0 -1698
  63. package/docs/module-layer.html +0 -137
  64. package/docs/module-movie.html +0 -3118
  65. package/docs/module-util.Color.html +0 -702
  66. package/docs/module-util.Font.html +0 -395
  67. package/docs/module-util.html +0 -845
  68. package/docs/movie.js.html +0 -689
  69. package/docs/scripts/collapse.js +0 -20
  70. package/docs/scripts/linenumber.js +0 -25
  71. package/docs/scripts/nav.js +0 -12
  72. package/docs/scripts/polyfill.js +0 -4
  73. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  74. package/docs/scripts/prettify/lang-css.js +0 -2
  75. package/docs/scripts/prettify/prettify.js +0 -28
  76. package/docs/scripts/search.js +0 -83
  77. package/docs/styles/jsdoc.css +0 -671
  78. package/docs/styles/prettify.css +0 -79
  79. package/docs/util.js.html +0 -503
  80. package/spec/assets/effect/gaussian-blur-horizontal.png +0 -0
  81. package/spec/assets/effect/gaussian-blur-vertical.png +0 -0
  82. package/spec/assets/effect/grayscale.png +0 -0
  83. package/spec/assets/effect/original.png +0 -0
  84. package/spec/assets/effect/pixelate.png +0 -0
  85. package/spec/assets/effect/transform/multiply.png +0 -0
  86. package/spec/assets/effect/transform/rotate.png +0 -0
  87. package/spec/assets/effect/transform/scale-fraction.png +0 -0
  88. package/spec/assets/effect/transform/scale.png +0 -0
  89. package/spec/assets/effect/transform/translate-fraction.png +0 -0
  90. package/spec/assets/effect/transform/translate.png +0 -0
  91. package/spec/assets/layer/audio.wav +0 -0
  92. package/spec/assets/layer/image.jpg +0 -0
  93. package/spec/effect.spec.js +0 -421
  94. package/spec/event.spec.js +0 -39
  95. package/spec/layer.spec.js +0 -307
  96. package/spec/movie.spec.js +0 -346
  97. package/spec/util.spec.js +0 -294
@@ -1,1227 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>Shader - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
- </head>
19
- <body>
20
-
21
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
- <label for="nav-trigger" class="navicon-button x">
23
- <div class="navicon"></div>
24
- </label>
25
-
26
- <label for="nav-trigger" class="overlay"></label>
27
-
28
- <nav >
29
-
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module-effect.Brightness.html">Brightness</a></li><li><a href="module-effect.Channels.html">Channels</a></li><li><a href="module-effect.ChromaKey.html">ChromaKey</a></li><li><a href="module-effect.Contrast.html">Contrast</a></li><li><a href="module-effect.EllipticalMask.html">EllipticalMask</a></li><li><a href="module-effect.GaussianBlur.html">GaussianBlur</a></li><li><a href="module-effect.GaussianBlurHorizontal.html">GaussianBlurHorizontal</a></li><li><a href="module-effect.GaussianBlurVertical.html">GaussianBlurVertical</a></li><li><a href="module-effect.Pixelate.html">Pixelate</a></li><li><a href="module-effect.Shader.html">Shader</a><ul class='methods'><li data-type='method'><a href="module-effect.Shader.html#._initBuffer">_initBuffer</a></li><li data-type='method'><a href="module-effect.Shader.html#._loadTexture">_loadTexture</a></li><li data-type='method'><a href="module-effect.Shader.html#_prepareValue">_prepareValue</a></li></ul></li><li><a href="module-effect.Stack.html">Stack</a><ul class='methods'><li data-type='method'><a href="module-effect.Stack.html#addEffect">addEffect</a></li></ul></li><li><a href="module-effect.Transform.html">Transform</a><ul class='methods'><li data-type='method'><a href="module-effect.Transform.html#.Matrix#cell">Matrix#cell</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#multiply">Matrix#multiply</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#rotate">Matrix#rotate</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#scale">Matrix#scale</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#translate">Matrix#translate</a></li></ul></li><li><a href="module-effect.Transform.Matrix.html">Matrix</a></li><li><a href="module-effect-GaussianBlurComponent.html">GaussianBlurComponent</a></li><li><a href="module-layer.Audio.html">Audio</a></li><li><a href="module-layer.Base.html">Base</a><ul class='methods'><li data-type='method'><a href="module-layer.Base.html#_render">_render</a></li></ul></li><li><a href="module-layer.Image.html">Image</a></li><li><a href="module-layer.Text.html">Text</a></li><li><a href="module-layer.Video.html">Video</a></li><li><a href="module-layer.Visual.html">Visual</a><ul class='methods'><li data-type='method'><a href="module-layer.Visual.html#_render">_render</a></li><li data-type='method'><a href="module-layer.Visual.html#addEffect">addEffect</a></li></ul></li><li><a href="module-layer-Media.html">Media</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.Color.html">Color</a><ul class='methods'><li data-type='method'><a href="module-util.Color.html#toString">toString</a></li></ul></li><li><a href="module-util.Font.html">Font</a><ul class='methods'><li data-type='method'><a href="module-util.Font.html#toString">toString</a></li></ul></li></ul><h3>Modules</h3><ul><li><a href="module-effect.html">effect</a></li><li><a href="module-event.html">event</a><ul class='methods'><li data-type='method'><a href="module-event.html#.publish">publish</a></li><li data-type='method'><a href="module-event.html#.subscribe">subscribe</a></li></ul></li><li><a href="module-index.html">index</a></li><li><a href="module-layer.html">layer</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.html">util</a><ul class='methods'><li data-type='method'><a href="module-util.html#.parseColor">parseColor</a></li><li data-type='method'><a href="module-util.html#.parseFont">parseFont</a></li><li data-type='method'><a href="module-util.html#.watchPublic">watchPublic</a></li><li data-type='method'><a href="module-util.html#~isKeyFrames">isKeyFrames</a></li></ul></li></ul><h3>Mixins</h3><ul><li><a href="module-layer-MediaMixin.html">MediaMixin</a></li></ul>
31
- </nav>
32
-
33
- <div id="main">
34
-
35
- <h1 class="page-title">Shader</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- <span class="ancestors"><a href="module-effect.html">effect</a>.</span>
49
-
50
- Shader
51
- </h2>
52
-
53
- <div class="class-description">A hardware-accelerated pixel mapping</div>
54
-
55
-
56
- </header>
57
-
58
- <article>
59
-
60
- <div class="container-overview">
61
-
62
-
63
-
64
-
65
- <h2>Constructor</h2>
66
-
67
-
68
- <h4 class="name" id="Shader"><span class="type-signature"></span>new Shader<span class="signature">(fragmentSrc, userUniforms<span class="signature-attributes">opt</span>, userTextures<span class="signature-attributes">opt</span>, sourceTextureOptions<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
69
-
70
-
71
-
72
-
73
-
74
-
75
- <dl class="details">
76
-
77
-
78
- <dt class="tag-source">Source:</dt>
79
- <dd class="tag-source"><ul class="dummy"><li>
80
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line99">line 99</a>
81
- </li></ul></dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
- <dt class="tag-todo">To Do:</dt>
114
- <dd class="tag-todo">
115
- <ul>
116
- <li>can `v_TextureCoord` be replaced by `gl_FragUV`</li>
117
- </ul>
118
- </dd>
119
-
120
- </dl>
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <h5>Parameters:</h5>
137
-
138
-
139
- <table class="params">
140
- <thead>
141
- <tr>
142
-
143
- <th>Name</th>
144
-
145
-
146
- <th>Type</th>
147
-
148
-
149
- <th>Attributes</th>
150
-
151
-
152
-
153
- <th>Default</th>
154
-
155
-
156
- <th class="last">Description</th>
157
- </tr>
158
- </thead>
159
-
160
- <tbody>
161
-
162
-
163
- <tr>
164
-
165
- <td class="name"><code>fragmentSrc</code></td>
166
-
167
-
168
- <td class="type">
169
-
170
-
171
- <span class="param-type">string</span>
172
-
173
-
174
-
175
- </td>
176
-
177
-
178
- <td class="attributes">
179
-
180
-
181
-
182
-
183
-
184
- </td>
185
-
186
-
187
-
188
- <td class="default">
189
-
190
- </td>
191
-
192
-
193
- <td class="description last"></td>
194
- </tr>
195
-
196
-
197
-
198
- <tr>
199
-
200
- <td class="name"><code>userUniforms</code></td>
201
-
202
-
203
- <td class="type">
204
-
205
-
206
- <span class="param-type">object</span>
207
-
208
-
209
-
210
- </td>
211
-
212
-
213
- <td class="attributes">
214
-
215
- &lt;optional><br>
216
-
217
-
218
-
219
-
220
-
221
- </td>
222
-
223
-
224
-
225
- <td class="default">
226
-
227
- <code>{}</code>
228
-
229
- </td>
230
-
231
-
232
- <td class="description last"></td>
233
- </tr>
234
-
235
-
236
-
237
- <tr>
238
-
239
- <td class="name"><code>userTextures</code></td>
240
-
241
-
242
- <td class="type">
243
-
244
-
245
- <span class="param-type">Array.&lt;object></span>
246
-
247
-
248
-
249
- </td>
250
-
251
-
252
- <td class="attributes">
253
-
254
- &lt;optional><br>
255
-
256
-
257
-
258
-
259
-
260
- </td>
261
-
262
-
263
-
264
- <td class="default">
265
-
266
- <code>[]</code>
267
-
268
- </td>
269
-
270
-
271
- <td class="description last"></td>
272
- </tr>
273
-
274
-
275
-
276
- <tr>
277
-
278
- <td class="name"><code>sourceTextureOptions</code></td>
279
-
280
-
281
- <td class="type">
282
-
283
-
284
- <span class="param-type">object</span>
285
-
286
-
287
-
288
- </td>
289
-
290
-
291
- <td class="attributes">
292
-
293
- &lt;optional><br>
294
-
295
-
296
-
297
-
298
-
299
- </td>
300
-
301
-
302
-
303
- <td class="default">
304
-
305
- <code>{}</code>
306
-
307
- </td>
308
-
309
-
310
- <td class="description last"></td>
311
- </tr>
312
-
313
-
314
- </tbody>
315
- </table>
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
- </div>
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
- <h3 class="subsection-title">Members</h3>
353
-
354
-
355
-
356
- <h4 class="name" id=".INTERNAL_TEXTURE_UNITS"><span class="type-signature">(static) </span>INTERNAL_TEXTURE_UNITS<span class="type-signature"></span></h4>
357
-
358
-
359
-
360
-
361
-
362
- <dl class="details">
363
-
364
-
365
- <dt class="tag-source">Source:</dt>
366
- <dd class="tag-source"><ul class="dummy"><li>
367
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line492">line 492</a>
368
- </li></ul></dd>
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
- </dl>
401
-
402
-
403
-
404
-
405
-
406
- <div class="description">
407
- WebGL texture units consumed by <code>Shader</code>
408
- </div>
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
- <h3 class="subsection-title">Methods</h3>
422
-
423
-
424
-
425
-
426
-
427
-
428
- <h4 class="name" id="._initBuffer"><span class="type-signature">(static) </span>_initBuffer<span class="signature">()</span><span class="type-signature"></span></h4>
429
-
430
-
431
-
432
-
433
-
434
-
435
- <dl class="details">
436
-
437
-
438
- <dt class="tag-source">Source:</dt>
439
- <dd class="tag-source"><ul class="dummy"><li>
440
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line388">line 388</a>
441
- </li></ul></dd>
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
- </dl>
474
-
475
-
476
-
477
-
478
-
479
- <div class="description">
480
- Creates the quad covering the screen
481
- </div>
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
- <h4 class="name" id="._loadTexture"><span class="type-signature">(static) </span>_loadTexture<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
516
-
517
-
518
-
519
-
520
-
521
-
522
- <dl class="details">
523
-
524
-
525
- <dt class="tag-source">Source:</dt>
526
- <dd class="tag-source"><ul class="dummy"><li>
527
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line409">line 409</a>
528
- </li></ul></dd>
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
- </dl>
561
-
562
-
563
-
564
-
565
-
566
- <div class="description">
567
- Creates a webgl texture from the source.
568
- </div>
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
- <h5>Parameters:</h5>
581
-
582
-
583
- <table class="params">
584
- <thead>
585
- <tr>
586
-
587
- <th>Name</th>
588
-
589
-
590
- <th>Type</th>
591
-
592
-
593
- <th>Attributes</th>
594
-
595
-
596
-
597
-
598
- <th class="last">Description</th>
599
- </tr>
600
- </thead>
601
-
602
- <tbody>
603
-
604
-
605
- <tr>
606
-
607
- <td class="name"><code>options</code></td>
608
-
609
-
610
- <td class="type">
611
-
612
-
613
- <span class="param-type">object</span>
614
-
615
-
616
-
617
- </td>
618
-
619
-
620
- <td class="attributes">
621
-
622
- &lt;optional><br>
623
-
624
-
625
-
626
-
627
-
628
- </td>
629
-
630
-
631
-
632
-
633
- <td class="description last">optional WebGL config for texture
634
- <h6>Properties</h6>
635
-
636
-
637
- <table class="params">
638
- <thead>
639
- <tr>
640
-
641
- <th>Name</th>
642
-
643
-
644
- <th>Type</th>
645
-
646
-
647
- <th>Attributes</th>
648
-
649
-
650
-
651
- <th>Default</th>
652
-
653
-
654
- <th class="last">Description</th>
655
- </tr>
656
- </thead>
657
-
658
- <tbody>
659
-
660
-
661
- <tr>
662
-
663
- <td class="name"><code>target</code></td>
664
-
665
-
666
- <td class="type">
667
-
668
-
669
- <span class="param-type">number</span>
670
-
671
-
672
-
673
- </td>
674
-
675
-
676
- <td class="attributes">
677
-
678
- &lt;optional><br>
679
-
680
-
681
-
682
-
683
-
684
- </td>
685
-
686
-
687
-
688
- <td class="default">
689
-
690
- <code>gl.TEXTURE_2D</code>
691
-
692
- </td>
693
-
694
-
695
- <td class="description last"></td>
696
- </tr>
697
-
698
-
699
-
700
- <tr>
701
-
702
- <td class="name"><code>level</code></td>
703
-
704
-
705
- <td class="type">
706
-
707
-
708
- <span class="param-type">number</span>
709
-
710
-
711
-
712
- </td>
713
-
714
-
715
- <td class="attributes">
716
-
717
- &lt;optional><br>
718
-
719
-
720
-
721
-
722
-
723
- </td>
724
-
725
-
726
-
727
- <td class="default">
728
-
729
- <code>0</code>
730
-
731
- </td>
732
-
733
-
734
- <td class="description last"></td>
735
- </tr>
736
-
737
-
738
-
739
- <tr>
740
-
741
- <td class="name"><code>internalFormat</code></td>
742
-
743
-
744
- <td class="type">
745
-
746
-
747
- <span class="param-type">number</span>
748
-
749
-
750
-
751
- </td>
752
-
753
-
754
- <td class="attributes">
755
-
756
- &lt;optional><br>
757
-
758
-
759
-
760
-
761
-
762
- </td>
763
-
764
-
765
-
766
- <td class="default">
767
-
768
- <code>gl.RGBA</code>
769
-
770
- </td>
771
-
772
-
773
- <td class="description last"></td>
774
- </tr>
775
-
776
-
777
-
778
- <tr>
779
-
780
- <td class="name"><code>srcFormat</code></td>
781
-
782
-
783
- <td class="type">
784
-
785
-
786
- <span class="param-type">number</span>
787
-
788
-
789
-
790
- </td>
791
-
792
-
793
- <td class="attributes">
794
-
795
- &lt;optional><br>
796
-
797
-
798
-
799
-
800
-
801
- </td>
802
-
803
-
804
-
805
- <td class="default">
806
-
807
- <code>gl.RGBA</code>
808
-
809
- </td>
810
-
811
-
812
- <td class="description last"></td>
813
- </tr>
814
-
815
-
816
-
817
- <tr>
818
-
819
- <td class="name"><code>srcType</code></td>
820
-
821
-
822
- <td class="type">
823
-
824
-
825
- <span class="param-type">number</span>
826
-
827
-
828
-
829
- </td>
830
-
831
-
832
- <td class="attributes">
833
-
834
- &lt;optional><br>
835
-
836
-
837
-
838
-
839
-
840
- </td>
841
-
842
-
843
-
844
- <td class="default">
845
-
846
- <code>gl.UNSIGNED_BYTE</code>
847
-
848
- </td>
849
-
850
-
851
- <td class="description last"></td>
852
- </tr>
853
-
854
-
855
-
856
- <tr>
857
-
858
- <td class="name"><code>minFilter</code></td>
859
-
860
-
861
- <td class="type">
862
-
863
-
864
- <span class="param-type">number</span>
865
-
866
-
867
-
868
- </td>
869
-
870
-
871
- <td class="attributes">
872
-
873
- &lt;optional><br>
874
-
875
-
876
-
877
-
878
-
879
- </td>
880
-
881
-
882
-
883
- <td class="default">
884
-
885
- <code>gl.LINEAR</code>
886
-
887
- </td>
888
-
889
-
890
- <td class="description last"></td>
891
- </tr>
892
-
893
-
894
-
895
- <tr>
896
-
897
- <td class="name"><code>magFilter</code></td>
898
-
899
-
900
- <td class="type">
901
-
902
-
903
- <span class="param-type">number</span>
904
-
905
-
906
-
907
- </td>
908
-
909
-
910
- <td class="attributes">
911
-
912
- &lt;optional><br>
913
-
914
-
915
-
916
-
917
-
918
- </td>
919
-
920
-
921
-
922
- <td class="default">
923
-
924
- <code>gl.LINEAR</code>
925
-
926
- </td>
927
-
928
-
929
- <td class="description last"></td>
930
- </tr>
931
-
932
-
933
- </tbody>
934
- </table>
935
-
936
- </td>
937
- </tr>
938
-
939
-
940
- </tbody>
941
- </table>
942
-
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
- <h4 class="name" id="_prepareValue"><span class="type-signature"></span>_prepareValue<span class="signature">(value, outputType, reltime, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
967
-
968
-
969
-
970
-
971
-
972
-
973
- <dl class="details">
974
-
975
-
976
- <dt class="tag-source">Source:</dt>
977
- <dd class="tag-source"><ul class="dummy"><li>
978
- <a href="effect.js.html">effect.js</a>, <a href="effect.js.html#line301">line 301</a>
979
- </li></ul></dd>
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
- </dl>
1012
-
1013
-
1014
-
1015
-
1016
-
1017
- <div class="description">
1018
- Converts a value of a standard type for javascript to a standard type for GLSL
1019
- </div>
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
- <h5>Parameters:</h5>
1032
-
1033
-
1034
- <table class="params">
1035
- <thead>
1036
- <tr>
1037
-
1038
- <th>Name</th>
1039
-
1040
-
1041
- <th>Type</th>
1042
-
1043
-
1044
- <th>Attributes</th>
1045
-
1046
-
1047
-
1048
-
1049
- <th class="last">Description</th>
1050
- </tr>
1051
- </thead>
1052
-
1053
- <tbody>
1054
-
1055
-
1056
- <tr>
1057
-
1058
- <td class="name"><code>value</code></td>
1059
-
1060
-
1061
- <td class="type">
1062
-
1063
- </td>
1064
-
1065
-
1066
- <td class="attributes">
1067
-
1068
-
1069
-
1070
-
1071
-
1072
- </td>
1073
-
1074
-
1075
-
1076
-
1077
- <td class="description last">the raw value to prepare</td>
1078
- </tr>
1079
-
1080
-
1081
-
1082
- <tr>
1083
-
1084
- <td class="name"><code>outputType</code></td>
1085
-
1086
-
1087
- <td class="type">
1088
-
1089
-
1090
- <span class="param-type">string</span>
1091
-
1092
-
1093
-
1094
- </td>
1095
-
1096
-
1097
- <td class="attributes">
1098
-
1099
-
1100
-
1101
-
1102
-
1103
- </td>
1104
-
1105
-
1106
-
1107
-
1108
- <td class="description last">the WebGL type of |value|; example: <code>1f</code> for a float</td>
1109
- </tr>
1110
-
1111
-
1112
-
1113
- <tr>
1114
-
1115
- <td class="name"><code>reltime</code></td>
1116
-
1117
-
1118
- <td class="type">
1119
-
1120
-
1121
- <span class="param-type">number</span>
1122
-
1123
-
1124
-
1125
- </td>
1126
-
1127
-
1128
- <td class="attributes">
1129
-
1130
-
1131
-
1132
-
1133
-
1134
- </td>
1135
-
1136
-
1137
-
1138
-
1139
- <td class="description last">current time, relative to the target</td>
1140
- </tr>
1141
-
1142
-
1143
-
1144
- <tr>
1145
-
1146
- <td class="name"><code>options</code></td>
1147
-
1148
-
1149
- <td class="type">
1150
-
1151
-
1152
- <span class="param-type">object</span>
1153
-
1154
-
1155
-
1156
- </td>
1157
-
1158
-
1159
- <td class="attributes">
1160
-
1161
- &lt;optional><br>
1162
-
1163
-
1164
-
1165
-
1166
-
1167
- </td>
1168
-
1169
-
1170
-
1171
-
1172
- <td class="description last">Optional config</td>
1173
- </tr>
1174
-
1175
-
1176
- </tbody>
1177
- </table>
1178
-
1179
-
1180
-
1181
-
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
- </article>
1204
-
1205
- </section>
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
- </div>
1213
-
1214
- <br class="clear">
1215
-
1216
- <footer>
1217
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sun Oct 13 2019 15:38:43 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1218
- </footer>
1219
-
1220
- <script>prettyPrint();</script>
1221
- <script src="scripts/polyfill.js"></script>
1222
- <script src="scripts/linenumber.js"></script>
1223
-
1224
-
1225
-
1226
- </body>
1227
- </html>