Debian Codegraph @

src/images/castleimages_modulatergb_implement.inc

raw
1 {%MainUnit castleimages.pas}
2
3 var pvec: PPixel;
4 i: Cardinal;
5 begin
6 if not Assigned(ColorModulator) then Exit;
7
8 pvec := PPixel(RawPixels);
9 for i := 1 to Width * Height do
10 begin
11 PVector3Byte(pvec)^ := ColorModulator(PVector3Byte(pvec)^);
12 Inc(pvec);
13 end;
14 end;