Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Utility Functions

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Utility Functions/RGBColor

RGBColor

6 views 0 Updated on December 16, 2021 hybrid-solutions

Syntax

Public Function RGBColor(Red As Integer, Green As Integer, Blue As Integer) As Long

Description

This function returns a value of type long representing an RGB color value from a set of red, green and blue color components.

Parameters

Key Description
Red Integer in the range 0-255 , inclusive , that represents the intensity of red component of the color.
Green Integer in the range 0-255 , inclusive , that represents the intensity of Green component of the color.
Blue Integer in the range 0-255 , inclusive , that represents the intensity of Blue component of the color.

Return value

Returns a long value representing an RGB color.

Exceptions

Exception type Condition
ArgumentsException If green , red , blue value outside of 0 and 255

Sample

 Public Sub main () AlertMessage RGBColor (255,255,255)  End sub

See Also

  • Weight
  • LineStyle
  • LineColor


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  StopSound

LineWeight  

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2023 hybridsolutions.com. All Rights Reserved.