ControlP5: How to translate() and rotate() a controller?
in
Contributed Library Questions
•
11 months ago
Hi all,
It is clear from the documentation that
translate() and
rotate() can be applied to controlP5 controllers.
Has anyone fingered out how can this be achieved?
I mean lets say that i want to make a slider or a knob that is always next to the mouse and control its values either another slider or from keyboard. (Basically i want to set position with tuio objects and use the mouse to enter the controller's values but anyway).
Where do i write the creation arguments and how do i move it in the window (...what do i write in
setup() and what in
draw()...)?
So far by creating it in
setup() and translate the (ControlP5)
controlP5.draw(); in
draw() it makes me two sliders the one is at a fixed position in screen and sets values to both sliders, and the second where it should be "translated()" but you cannot set values to it. So it is wrong.
Can anyone replay an example?
\
Thanx.
1