You've already forked lazarus-ccr
mbColorLib: Beginning to add MaxHue, MaxSaturation and MaxValue properties to HSV ColorPickers
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5535 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -251,9 +251,9 @@ var
|
||||
begin
|
||||
triple := HSLToRGBTriple(FHue, FSat, FLum);
|
||||
if not WebSafe then
|
||||
Result := RGBTripleToTColor(triple)
|
||||
Result := RGBTripleToColor(triple)
|
||||
else
|
||||
Result := GetWebSafe(RGBTripleToTColor(triple));
|
||||
Result := GetWebSafe(RGBTripleToColor(triple));
|
||||
end;
|
||||
|
||||
function TSLColorPicker.GetColorAtPoint(x, y: integer): TColor;
|
||||
@ -262,9 +262,9 @@ var
|
||||
begin
|
||||
triple := HSLToRGBTriple(FHue, MulDiv(255, x, Width), MulDiv(255, Height - y, Height));
|
||||
if not WebSafe then
|
||||
Result := RGBTripleToTColor(triple)
|
||||
Result := RGBTripleToColor(triple)
|
||||
else
|
||||
Result := GetWebSafe(RGBTripleToTColor(triple));
|
||||
Result := GetWebSafe(RGBTripleToColor(triple));
|
||||
end;
|
||||
|
||||
procedure TSLColorPicker.CNKeyDown(
|
||||
|
Reference in New Issue
Block a user