Hi Marc,
I've found the time to get back to writing my scripts, and I think I came across a bug.
I'm using FillGradientRectangle and whenever I set an X or Y value other than 0, the gradient does not draw properly, it is cut by the amount of pixels I set X or Y (only the gradient effect, not the shape itself).
Take these 2 examples of vertical gradient and horizontal gradient respectively:
gr.FillGradientRectangle(0, 100, window.Width, 100, 0, 0xFF000000, 0xFFFFFFFF);
gr.FillGradientRectangle(100, 0, 100, window.Height, 1, 0xFF000000, 0xFFFFFFFF);
The result from this 2 lines is a box that is the correct size but the black part of the gradient is not visible, only if you set both X and Y to 0 you can actually see the black, as if it is being drawn from x:0 and y:0 no matter what.
I did the same test using FillGradientRectangleAdvanced with the sample in the docs, same behaviour.
Since I haven't yet updated to foobar v2.0 I'm using JScript Panel v3.0.7. I took a look at the changelog and couldn't find anything related to this in newer versions.
As always, thank you for this great component.