Thema: Delphi Blending colors in HSL

Einzelnen Beitrag anzeigen

freeway

Registriert seit: 11. Jul 2009
57 Beiträge
 
Delphi XE Professional
 
#4

AW: Blending colors in HSL

  Alt 11. Jul 2012, 17:05
hmm why hsl blend over, i don´t see the benefit to rgb blend methode
ok that don´t explain your question

you got
MaxHue := 360;
MaxSat := 100;
MaxLum := 100;


H := Round((MaxHue / 100) * AValue) * (HSL2[0] - HSL1[0]) shr 8 + HSL1[0];
S := Round((MaxSat / 100) * AValue) * (HSL2[1] - HSL1[1]) shr 8 + HSL1[1];
L := Round((MaxLum / 100) * AValue) * (HSL2[2] - HSL1[2]) shr 8 + HSL1[2];

you see the difference ?
  Mit Zitat antworten Zitat