Returned changes for 'Fix Randomize gradient floating point error'

because of unexpected side effect.
Worked around the problem another way
This commit is contained in:
ronaldhordijk
2005-06-28 16:37:55 +00:00
parent 44b1608ce0
commit 1a98ff484b
2 changed files with 15 additions and 10 deletions

View File

@ -83,11 +83,12 @@ var
f, p, q, t, v: double;
begin
try
rgb[0] := 0;
rgb[1] := 0;
rgb[2] := 0;
// rgb[0] := 0;
// rgb[1] := 0;
// rgb[2] := 0;
j := floor(hsv[0]);
f := hsv[0] - j;
v := hsv[2];
p := hsv[2] * (1 - hsv[1]);