Skip to content

Instantly share code, notes, and snippets.

@jaycody
Last active September 22, 2018 12:21
Show Gist options
  • Save jaycody/adb54e957daab729c81b690aa2ead910 to your computer and use it in GitHub Desktop.
Save jaycody/adb54e957daab729c81b690aa2ead910 to your computer and use it in GitHub Desktop.
create and update sliders in p5.js
/////SLIDERS//////
in setup()
slider = createSlider(min, max, initial);
slider.position(x,y);
slider.style('width', '80px');
in draw()
var val = slider.value();
background(val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment