Skip to content

Instantly share code, notes, and snippets.

@flordefuego
Created November 2, 2023 21:53
Show Gist options
  • Save flordefuego/086e32ad111140f7f5adebc844a051d2 to your computer and use it in GitHub Desktop.
Save flordefuego/086e32ad111140f7f5adebc844a051d2 to your computer and use it in GitHub Desktop.
p = new P5();
let r;
let j;
let myText;
let myFeedback;
p.draw=()=>{
p.textSize(80);
p.clear();
p.rect((p.frameCount%p.width/2),p.height/2,100)
if(p.mouseIsPressed){
r = 10
myFeedback = 0.5;
}else{
r = 5
myFeedback = 0;
}
if(p.frameCount%p.width/2< 400){
j=5;
myText= 'weeee'
}else{
j = 60
myText = 'ooooo'
}
p.text(myText,p.width/2,p.height/2)
p.text(p.frameCount%p.width/2,p.width/2,p.height/2 + 80)
}
p.hide();
s0.init({src:p.canvas})
osc(()=>j,0.1,()=>r).layer(src(s0)).modulate(src(o0),()=>myFeedback).out()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment