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
/* | |
_hydra_texture // cc ojack.xyz + teddavis.org 2021 | |
edit hydra code within // hydraSandbox tags for changes w/o recompiling p5! | |
cheatsheets: https://ojack.xyz/hydra-functions/ + https://hydra-book.naotohieda.com/ | |
*/ | |
let libs = ['https://unpkg.com/hydra-synth', 'includes/libs/hydra-synth.js', | |
"https://unpkg.com/ml5@1/dist/ml5.min.js"] | |
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 libs = ['https://unpkg.com/hydra-synth', 'includes/libs/hydra-synth.js,',"https://cdn.jsdelivr.net/npm/[email protected]/dist/p5.asciify.umd.js"] | |
let font; | |
function preload() { | |
//p5asciify.loadFont(font); // Load a custom font for the ASCII conversion | |
font = loadFont("https://cdn.glitch.global/8e28a2b8-654f-4e33-95ad-1c5f09651e26/CHUNKY.ttf?v=1743117722728"); | |
p5asciify.loadFont(font); | |
} |
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
// Create the video manually | |
let vid = document.createElement('video') | |
vid.src = 'https://upload.wikimedia.org/wikipedia/commons/transcoded/4/46/John_Bauer_%E2%80%93_Illustrator_of_Folklore_and_Fairy_Tales.webm/John_Bauer_%E2%80%93_Illustrator_of_Folklore_and_Fairy_Tales.webm.1080p.vp9.webm' | |
vid.crossOrigin = 'anonymous' | |
vid.loop = true | |
vid.muted = false | |
vid.autoplay = false // we'll start it after a click | |
document.body.appendChild(vid) // optional, for debugging | |
// Wait for a user click/touch to allow audio |
OlderNewer