* fadeOut(flash) effect * screen is filled with the specified color and slowly goes back to normal * @param color - a CSS color value * @param [duration=1000] - expressed in milliseconds * @param [onComplete] - callback once effect is over * @example * // fade the camera to white upon
( color: Color | string, duration: number = 1000, onComplete?: () => void, )
| 740 | * }); |
| 741 | */ |
| 742 | fadeOut( |
| 743 | color: Color | string, |
| 744 | duration: number = 1000, |
| 745 | onComplete?: () => void, |
| 746 | ): void { |
| 747 | this.addCameraEffect( |
| 748 | new FadeEffect(this, { |
| 749 | color, |
| 750 | duration, |
| 751 | direction: "out", |
| 752 | onComplete, |
| 753 | }), |
| 754 | ); |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * fadeIn effect <p> |
no test coverage detected