SRP_Color provides services for bringing the Color technology widely used in our SRP ActiveX Controls to OpenInsight. This allows you to use named colors and adjust those colors by certain attributes such as luminance.

Regex Patterns

A regex pattern is a mini-language unto itself that is often confusing to look at, even for those used to it. SRP_Regex uses the same syntax as Javascript, so your best bet is to find an online tool to help you craft and test your regex patterns. A great resource is Regex101.com. Make sure to select ECMAScript (Javascript) as your regex flavor.

Regex is case sensitive. If you want case insensitivity, you implement it in the regex pattern itself.

Reference

ServiceDescriptionVersion Added
OIToHexFormats an OI color to '#rrggbb' format.2.2.17
SRPStringToHexInterprets an SRP Color and returns it in '#rrggbb' format.2.2.17
SRPStringToOIInterprets an SRP Color and returns it as an OI color.2.2.17
  • No labels