Color.ToHTML (gb.web.gui)

Static Function ToHTML ( Color As Integer ) As String

Convert a gambas colour integer into HTML CSS compliant code.

The resulting string will be either a hash prefixed hex value. eg. #00FF00 that can be used anywhere or an rgba() string with integer values if alpha (transparency) is set. eg. rgba(0,128,255,0.75) that should only be used in css style assignments.