Update Paint.ToHTML wiki help

[GB.WEB.GUI]
* OPT: Explain in help that Color.ToHTML() will return text only useable with CSS style assignments if alpha is used.
This commit is contained in:
Bruce Steers 2022-08-08 12:17:46 +01:00
parent 892d2a7ab6
commit 299f0b3232

View file

@ -67,9 +67,10 @@ Static Public Sub RGB((Red) As Integer, (Green) As Integer, (Blue) As Integer, O
End
'' Convert a gambas colour integer into HTML compliant code.
'' 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.
''
'' The resulting string will be either a hash prefixed hex value. eg. '#00FF00' or an rgba() call with integer values if alpha (transparency) is set. eg. 'rgba(0,128,255,0.75)'
Static Public Sub ToHTML({Color} As Integer) As String
Return WebForm._GetColor({Color})