This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| var emitTimer: Timer? | |
| var lastTouchPoints = [UITouch: CGPoint]() | |
| var symbolLayers = [CAShapeLayer]() | |
| let neonColors: [UIColor] = [ | |
| UIColor(red: 1.00, green: 0.30, blue: 0.69, alpha: 1.00), // neon pink |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var src: String = "" | |
| var completionHandler: ((_ success: Bool, _ outputURL: URL?)->())? | |
| var outputURL: URL? | |
| init(src: String, completion: ((_ success: Bool, _ outputURL: URL?) -> Void)? = nil) { | |
| super.init() | |
| self.src = src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let filter = GPUImageOverlayBlendFilter() | |
| filter.useNextFrameForImageCapture() | |
| var picture_1 = GPUImagePicture(image: UIImage(named: "bun-outline.png")) | |
| var picture_2 = GPUImagePicture(image: UIImage(named: "pink.png")) | |
| picture_1.addTarget(filter) | |
| picture_1.processImage() | |
| picture_2.addTarget(filter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .video-wrapper { | |
| position: relative; | |
| height: 100%; | |
| width: 100%; | |
| background: #ccc; | |
| z-index: -1; | |
| overflow: hidden; | |
| video { | |
| position: absolute; | |
| top: 0; |