Page 1 of 1

RGBScript - call start/end colors?

Posted: Mon May 11, 2015 11:27 pm
by esotericaqua
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

Re: RGBScript - call start/end colors?

Posted: Tue May 12, 2015 7:50 am
by mcallegari
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.

Re: RGBScript - call start/end colors?

Posted: Tue May 12, 2015 7:59 am
by OddSocks
@ 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 ;)

Re: RGBScript - call start/end colors?

Posted: Tue May 12, 2015 7:59 am
by mcallegari
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.

Re: RGBScript - call start/end colors?

Posted: Tue May 12, 2015 8:36 am
by OddSocks
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 :)

Re: RGBScript - call start/end colors?

Posted: Tue May 12, 2015 1:52 pm
by esotericaqua
Thanks Massimo & Tim. Good information to help me. I would also +1 Tim's suggestion when time permits.

Cheers!