SetFillColour

Example 1: Change fill colour by name

To set the script drawing fill colour of a frame named MyFrame using a string:

MyFrame.SetFillColour("green")

Example 2: Change fill colour by Hex value

To change the script drawing fill colour of a frame named MyFrame using a hex value:

MyFrame.SetFillColour("#7F5D9A")
// a purplish colour

Example 3: Change fill colour by RGB function

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)

Example 4: Change fill colour by specifying amount of Red, Green and Blue

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)

Example 5: Remove the fill

To remove the script drawing fill of a frame named MyFrame:

MyFrame.SetFillColour(-1)

Example 6: Setting the fill transparency

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 );

Close