RGBScript - call start/end colors?

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
esotericaqua
Posts: 17
Joined: Thu Apr 30, 2015 7:36 pm
Real Name: Drew E
Contact:

Hi,

I am working on some custom RGBScripts, mostly with the API version 1. Perhaps API version 2 will allow what I want, but it doesn't seem obvious.

I was wondering if there is a way to call the specific start & end color's that are specified? (For example, put color1 on odd vertical rows and fill color2 on even horizontal rows). I can figure out the math and arrays to pass rgb to the rows I want, I can't figure out how to specifically call the start/end rgb color and assign it to the either of steps.

Anyone have any thoughts?
Cheers,
Drew
User avatar
mcallegari
Posts: 4825
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Start and end colors are not passed to the JS script.
The RGB color is computed at every step of the matrix, doing a fade between the start and the end color.

With API 2 though, you can add the parameters you want. For example in your case you can create a list of start colors and end colors you intend to use, and store them in an array in the script.
Then at every step, ignore the RGB color passed by QLC+ and use the custom colors previously set.
OddSocks
Posts: 152
Joined: Tue Apr 14, 2015 11:33 am
Real Name: Tim Cullingworth

@ Mcallegari,
Is there any way of including a colour picker widget to the API2 scripting, as when I was looking at the scripts this was something I thought would be useful.

No urgency just a wish list ;)
User avatar
mcallegari
Posts: 4825
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

OddSocks wrote:@ Mcallegari,
Is there any way of including a colour picker widget to the API2 scripting, as when I was looking at the scripts this was something I thought would be useful.
What do you mean by color picker ? A button where you can pick a color to be used by the script through a custom parameter ?
This is feasible, but then we should add some further Click&Go buttons to the Animation widget as custom controls.
OddSocks
Posts: 152
Joined: Tue Apr 14, 2015 11:33 am
Real Name: Tim Cullingworth

I was thinking of something like the click and go buttons. Used in the same way in the script as the list / value controls. So rather than only being able to select form a number of pre-set colours the full RGB spectrum was available.

As I say just an idea and not a demand :)
esotericaqua
Posts: 17
Joined: Thu Apr 30, 2015 7:36 pm
Real Name: Drew E
Contact:

Thanks Massimo & Tim. Good information to help me. I would also +1 Tim's suggestion when time permits.

Cheers!
Post Reply