| |
|
|
Carlo Keil | Include-File to relief the Umgangs with RGB- and ogl-colours the archive contains The Include-File and a Beispielprogramm.
include are four functions to that converting between RGB- and ogl-colours, a function, The whom Farbauswahldialog Windows easily useable power and a function, The without usage of @Get(TrueColor) determined, whether currently the Truecolor-Farbmodus active is. with the last function can The Umrechnungen too with Profan-versions without @Get(TrueColor) used go (The erforderlichen Changes are already in the Source installed, but auskommentiert).
@RGBtoOGL_rot(f&) f& is the auszuwertende RGB-Farbwert Return Value is the Rotanteil in the ogl-Wertebereich 0-1 @RGBtoOGL_gelb(f&) f& is the auszuwertende RGB-Farbwert Return Value is the Gelbanteil in the ogl-Wertebereich 0-1 @RGBtoOGL_grün(f&) f& is the auszuwertende RGB-Farbwert Return Value is the Grünanteil in the ogl-Wertebereich 0-1 @OGLtoRGB(r!, g!, b!) r!, g! and b! are The ogl-Farbwerte (each in the area 0-1) Return Value is the suitable RGB-Farbwert (the actually TrueColor-status becomes automatically berücksichtigt)
@Farbewählen(f&) f& is the Vorgabefarbe Return Value is the RGB-worth the chosen colour
@IsTrueColor() no Parameter The function behave itself How @Get(TrueColor), operates but differently, so that they too with previous PRofan-versions used go can. Return Value is 1 (=TRUE) with gesetztem TrueColor-mode and 0 (=FALSE) with not gesetztem TrueColor-mode |
|
|
| |
|
|