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
#!/usr/bin/env python3 | |
import argparse | |
import statistics | |
global moodbarSamples | |
moodbarSamples = 1000 # This value is according to Moodbar definition (https://en.wikipedia.org/wiki/Moodbar) | |
## -------------------- Script execution context -------------------- ## | |
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
// To use as your page loading: | |
// Best way is to embed in your HTML a DIV.overlay, without the hidden class | |
// This way, your page is loaded with the overlay on | |
// Do your initialization stuff, then just stop the loading, voilà! | |
// Attach to window to make it globally available in your runtime | |
window.overlay = document.querySelector('#overlay'); | |
// ... Or, built an overlay DOM element when required | |
window.overlay = document.createElement('DIV'); |