Page 1 of 1
RGB slider with XY pad color select?
Posted: Wed Aug 26, 2015 7:39 pm
by mumbles
Does anyone know of a way to use XY pad to control the RGB colors when using a slider with RGB selected in widget properties?
By the way...Im running QLC+ 4.9.1 on OS X 10.10 if that helps
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 7:59 am
by plugz
Hi,
I don't understand what you want to do, can you elaborate ?
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 10:49 am
by mcallegari
XY pads are there to control XY positions, not colors. Basically it's a widget dedicated to moving heads.
At the moment to control colors you have Sliders+Click&Go or the Animation widget
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:03 am
by mumbles
Id like to be able to use an XY pad to select a color without the need to click on the box of an RGB slider and selecting color from color pallet. The pic attached may help show a little better representation of what I'm trying to accomplish than the ones before.
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:21 am
by mumbles
Maybe a better question would be.. Could someone explain the algorithm that the color pallet uses? So I could patch standard sliders with limits or create a custom fixture profile using loopback patched to standard sliders to make this work. I under stand its not the norm for XY Pad. But I feel I could get this to work the way I want if I understood the algurethum used in color pallet when changing/ selecting colors.
any advice or links about the color algorithm would be appreciated.
thanks
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:29 am
by mcallegari
This is the palette generation code:
https://github.com/mcallegari/qlcplus/b ... nt.cpp#L60
I still don't understand what you want to do, except for saving just one mouse click.
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:41 am
by plugz
With this, colors could be configured with 2 physical sliders.
Have you had a look at the animation widget ? You can have R/G/B knobs in it.
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:46 am
by janosvitok
Simply stated: in the graph: x = Hue, y = Lightness, with full saturation. See
https://en.wikipedia.org/wiki/HSL_and_HSV
I guess what mumbles wants is to control hue with one slider and lightness with another.
Note to Massimo: maybe the code in question may be simplified using
http://doc.qt.io/qt-4.8/qcolor.html#fromHsl
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 11:46 am
by mcallegari
plugz wrote:With this, colors could be configured with 2 physical sliders.
janosvitok wrote:Simply stated: in the graph: x = Hue, y = Lightness, with full saturation. See
https://en.wikipedia.org/wiki/HSL_and_HSV
I guess what mumbles wants is to control hue with one slider and lightness with another.
Ok, but sliders controlled with an external controller are not discrete, so to go from let's say yellow to blue you have to go through green and cyan first.
I doubt this is useful during a live performance as all the intermediate colors will be shown to the audience.
Click & Go, on the other hand is discrete, if you use a mouse.
plugz wrote:Have you had a look at the animation widget ? You can have R/G/B knobs in it.
Similarly, he can use 3 sliders in level mode, but still they're not discrete. Plus you have to remember how to mix a RGB color with 3 components
I guess that's what a QLinearGradient does.
I already simplified the code after I implemented it in Javascript, with the Canvas element:
https://github.com/mcallegari/qlcplus/b ... ll.qml#L72
For now I prefer to keep the gradient calls, so both the code look very similar (and also the JS code can be finally ported to the web interface)
Re: RGB slider with XY pad color select?
Posted: Thu Aug 27, 2015 4:20 pm
by mumbles
Thanks everyone!
I appreciate the info.
Also Just to explain my use case a little. The reason Im determined to get this functioning is to create the most intuitive interface posable for the fallowing reasons..
1) It will allow mapping an inexpensive nanoPad's XY pad to change colors, trigger scenes and nanoKontrol for faders.
2) The interface has to be simple enough to use in an elementary school and allow children to design and run there on lighting shows. With supervision of course. But I want the students to have the ability to create, design and run as much of the show as posable on there own. Right now the school has all the fixtures they need but the lighting console is old and works intermittently.
3) I want them to be able get the benefits of software based lighting control without getting frustrated and loosing interest in trying to create new/more "advanced" scenes.
4) $0 budget to replace equipment.
use case 2 youth ministry same scenario as above different location, different people.