And my next questions (hopefully the last ):
I have these two arrays in my script:
var c_arr = new Array(RGBA(191, 228, 255, 255), RGBA(128, 192, 255, 255), RGBA(0, 255, 0, 255), RGBA(255, 0, 0, 255), RGBA(255, 255, 255, 255), RGBA(255, 255, 0, 255));
var a_arr = new Array(RGBA(191, 228, 255, 8), RGBA(128, 192, 255, 8), RGBA(0, 255, 0, 8), RGBA(255, 0, 0, 8), RGBA(255, 255, 255, 8), RGBA(255, 255, 0, 8));
As you can see only alpha value changes.
This is for drawing rectangles according to a condition in full colour (in "on" mode) or semi-transparent (in "off" mode).
So is there a way to make it easier?
Is there anything like "blending" normal RGB() with alpha?
And is there anything like "blending" two colours (RGB() and RGB()) or substract one from another?
Then i could also use this on/off mode for text (since GdiDrawText doesn't seems to support an alpha value, i could then use a "off" colour depending on the c_arr colour and the background colour)