Commit c10e9cdc by PLN (Algolia)

feat: camera sketches (local webcam, phones via hydra-cams hub)

Co-Authored-By: 's avatarClaude Sonnet 5.5 <noreply@anthropic.com>
parent 73cde021
// Téléphones (aucune install) : ouvrir https://<mac>/phone.html sur chaque téléphone
// Hub : cd ~/Work/Perso/hydra-cams && node server.mjs
await loadScript('http://localhost:8002/hub.js')
s1.init({ src: camHub.canvas(0), dynamic: true }) // 1er téléphone
s2.init({ src: camHub.canvas(1), dynamic: true }) // 2e téléphone
src(s1).out(o0)
src(s2).diff(src(s1)).out(o1)
render()
// Webcam locale : change l'index si besoin (voir http://localhost:8000/cams.html)
s0.initCam(0)
src(s0).out(o0)
src(o0)
.kaleid(4)
.modulate(noise(2, 0.1), 0.05)
.out(o1)
render(o1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment