# Realtime Slider-style controls in Processing

**URL:** <https://discourse.processing.org/t/realtime-slider-style-controls-in-processing/20708>\
**Category:** Libraries\
**Created:** [May 10, 2020, 10:11am UTC](https://discourse.processing.org/t/realtime-slider-style-controls-in-processing/20708 "2020-05-10T10:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)\
**Post date:** [May 10, 2020, 10:11am UTC](https://discourse.processing.org/t/realtime-slider-style-controls-in-processing/20708/1 "2020-05-10T10:11:57Z")

</div>

I LOVE the createSlider() DOM functionality in p5js. In fact, I have been using p5js over Processing for the past few months, almost exclusively for the simplicity of creating a slider on the fly. Zero effort. I almost always want the flexibility of changing many factors in my code during runtime, and DOM sliders provide an amazing interface for that (used to use mouseX and mouseY only).

Is there anything comparable to these in Processing? I know there are GUI libraries that include slider elements, but they all contain a lot of bloat and peripheral functions, when I just want a slider overlay that returns a position value during runtime.

Eventually I intend on buying a physical controller with knobs and sliders to control my sketches, but for right now, are there any simple, effective libraries for real-time variable controlling?

Many thanks  
-nosson

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [May 10, 2020, 11:08am UTC](https://discourse.processing.org/t/realtime-slider-style-controls-in-processing/20708/2 "2020-05-10T11:08:38Z")

</div>

Whenever possible I avoid using libraries, because you can’t customize the objects. A slider is such a simple thing. Why don’t you just write them yourself?  
[Example](https://www.openprocessing.org/sketch/886990)

---

<div class="post-metadata">

**Author:** ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)\
**Post date:** [May 10, 2020, 11:22am UTC](https://discourse.processing.org/t/realtime-slider-style-controls-in-processing/20708/3 "2020-05-10T11:22:33Z")

</div>

Was going to do that if there wasn’t a dead simple prebuilt option. Guess that’s the best choice.
