To set the script drawing fill colour of a frame named MyFrame using a string:
MyFrame.SetFillColour("green")
To change the script drawing fill colour of a frame named MyFrame using a hex value:
MyFrame.SetFillColour("#7F5D9A")
// a purplish colour
To change the script drawing fill colour of a frame named MyFrame using the RGB function:
MyFrame.SetFillColour(RGB(200,98,33))
// or
var newColour = RGB(200,98,33)
MyFrame.SetFillColour(newColour)
To change the script drawing fill colour of a frame named MyFrame by the amount of red, green and blue:
MyFrame.SetFillColour(240,120,60)
// or
var red = 240
var green = 120
var blue = 60
MyFrame.SetFillColour(red, green, blue)
To remove the script drawing fill of a frame named MyFrame:
MyFrame.SetFillColour(-1)
To change the script drawing fill colour of a frame named MyFrame and set the fill transparency, use any of the syntaxes previously described, adding the opacity parameter. For example:
MyFrame.SetFillColour( RGB(200,98,33), 10 );
MyFrame.SetFillColour( "#7F5D9A", 94 );