SetLineColour

Example 1:

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

MyFrame.SetLineColour("green")

Example 2: Change line colour by Hex value

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

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

Example 3: Change line colour by RGB function

To change the script drawing line colour of a frame named MyFrame using the RGB function:

MyFrame.SetLineColour(RGB(200,98,33))
// or
var newColour = RGB(200,98,33)
MyFrame.SetLineColour(newColour)

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

To change the script drawing line colour of a frame named MyFrame by the amount of red, green and blue:

MyFrame.SetLineColour(240,120,60)
// or
var red = 240
var green = 120
var blue = 60
MyFrame.SetLineColour(red, green, blue)

Example 5: Remove the line

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

MyFrame.SetLineColour(-1)

Example 6: Setting the line transparency

To change the script drawing line colour of a frame named MyFrame and set the line’s transparency, use any of the syntaxes previously described, adding the opacity parameter. For example:

MyFrame.SetLineColour( RGB(200,98,33), 10 );

MyFrame.SetLineColour( "#7F5D9A", 94 );

Close