StrToRgb
The StrToRgb function extracts R, G, and B numbers from a triplet string. For example, passing "100,20.5,300.25" returns the numbers 100, 20.5 and 300.25. The string does not actually have to contain true R, G and B components but must contain just 3 numbers separated by commas.
nR, nG, nB = StrToRgb( string )
where
string is the string comtaining 3 comma-separated numbers.
nR, nG, nB are numeric values.
The example below extracts 3 numbers from a string:
|
-- data type "float" |
|
-- get the 3 numbers |
|
-- result: R=100, G=20.5, B=300.25 |