hi,
how can I convert a color value (1-255) to an RGB value?
I think I need an Array {{nColor, nRgbForegrundColor, nRgbBackgrundColor}} with 255 Lines. Im I right?
Thank you for some answers!
hi,
how can I convert a color value (1-255) to an RGB value?
I think I need an Array {{nColor, nRgbForegrundColor, nRgbBackgrundColor}} with 255 Lines. Im I right?
Thank you for some answers!
Michael Hagl
On Friday, December 10, 2021 at 12:11:15 PM UTC+2, wrote:
hi,
how can I convert a color value (1-255) to an RGB value?
I think I need an Array {{nColor, nRgbForegrundColor, nRgbBackgrundColor}} with 255 Lines. Im I right?
Thank you for some answers!
Michael HaglIn case of desktop apps the RGB value is an integer (on 4 bytes). The formula is described here (it does not include alpha channel):
https://math.stackexchange.com/questions/1635999/algorithm-to-convert-integer-to-3-variables-rgb
...but I don't understand what you need. If you are generating html files, the hexa color codes are simpler.
Hi Ella,
I need it for PageScript function PsTextOut()
Function PSTextOut(nTop, nLeft, xValue, cPicture, nJustify, cFontName, nFontSize, nFontStyle, nFontFColor, nFontBColor, nAngle)
nFontFColor, nFontBColor has to be RGB values. I want to convert Colorstring "b/n" t two RGB values.
Ella Stern schrieb am Freitag, 10. Dezember 2021 um 23:36:38 UTC+1:
On Friday, December 10, 2021 at 12:11:15 PM UTC+2, wrote:
hi,
how can I convert a color value (1-255) to an RGB value?
I think I need an Array {{nColor, nRgbForegrundColor, nRgbBackgrundColor}} with 255 Lines. Im I right?
Thank you for some answers!
Michael HaglIn case of desktop apps the RGB value is an integer (on 4 bytes). The formula is described here (it does not include alpha channel):
https://math.stackexchange.com/questions/1635999/algorithm-to-convert-integer-to-3-variables-rgb
...but I don't understand what you need. If you are generating html files, the hexa color codes are simpler.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 113 |
Nodes: | 8 (1 / 7) |
Uptime: | 67:16:55 |
Calls: | 2,472 |
Calls today: | 1 |
Files: | 8,642 |
Messages: | 1,899,421 |