diff options
author | Erich Eckner <git@eckner.net> | 2016-03-10 09:54:05 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-03-15 13:01:16 +0100 |
commit | 2620b2d1dbc4c5965101d894a784ebd2b1676940 (patch) | |
tree | 9e1f24165b4bf1b5f7230189bfacc1b0cac429fb | |
parent | 0af58141bb3580e944780b8e89f3974b06c5e232 (diff) | |
download | units-2620b2d1dbc4c5965101d894a784ebd2b1676940.tar.xz |
Funktion RGB neu in lowlvelunit.pas
-rw-r--r-- | lowlevelunit.pas | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas index a113835..e9991ed 100644 --- a/lowlevelunit.pas +++ b/lowlevelunit.pas @@ -64,6 +64,7 @@ function andFarben(a,b: tRGB): tRGB; function wertZuFarbe(x: extended; p: tRGBArray): tRGB; function tFPColor2tRgb(c: tFPColor): tRGB; function tRgb2tFPColor(c: tRGB): tFPColor; +function rgb(r,g,b: byte): tRGB; inline; procedure myDebugLnThreadLog(s: string); procedure cleanupLogs; procedure cleanupLog(tid: PtrUInt); @@ -487,6 +488,13 @@ begin result.blue:=c.rgbBlue; end; +function rgb(r,g,b: byte): tRGB; +begin + result.rgbRed:=r; + result.rgbGreen:=g; + result.rgbBlue:=b; +end; + procedure myDebugLnThreadLog(s: string); var f: textfile; id: PtrUInt; |