summaryrefslogtreecommitdiff
path: root/lowlevelunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-03-10 09:54:05 +0100
committerErich Eckner <git@eckner.net>2016-03-15 13:01:16 +0100
commit2620b2d1dbc4c5965101d894a784ebd2b1676940 (patch)
tree9e1f24165b4bf1b5f7230189bfacc1b0cac429fb /lowlevelunit.pas
parent0af58141bb3580e944780b8e89f3974b06c5e232 (diff)
downloadunits-2620b2d1dbc4c5965101d894a784ebd2b1676940.tar.xz
Funktion RGB neu in lowlvelunit.pas
Diffstat (limited to 'lowlevelunit.pas')
-rw-r--r--lowlevelunit.pas8
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;