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
| void setup() { | |
| // Global frame rate is 30 fps | |
| // 1 second = 30 frames | |
| frameRate(30); | |
| } | |
| void draw() { | |
| // Change the background once every 30 frames | |
| // 30 frames is 1 second, so that means | |
| // change the background at 1 fps | |
| if(frameCount % 30 == 0) { |
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
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Layer covering video</title> | |
| <style type="text/css"> | |
| html, body { | |
| padding: 0px; | |
| margin:0px; | |
| } | |
| #overlay { |
NewerOlder