Forum: Multimedia
Delphi
by WojTec,
24. Mai 2012
So, gradient haven't to be identical as in sample. I just want to know way to get something similar ;) Could you post some example, please?
Forum: Multimedia
Delphi
by WojTec,
23. Mai 2012
I don't understand you, what I need to blend with?
Forum: Multimedia
Delphi
by WojTec,
19. Apr 2012
Guys, how to do something similar, but with color wheel, mean not only 2 colors gradient, but N colors beetwen 2 input colors?
Forum: Multimedia
Delphi
by WojTec,
28. Dez 2011
Thanks, I tried it too, but I forgot about ( and ) :-D
And what about BW gradient from int version?
Forum: Multimedia
Delphi
by WojTec,
28. Dez 2011
Hi, thanks!
Float point version working, but: first element in result is first input color, then steps-1 are real steps. Why?
Second int version is making black-white gradient, why?
Forum: Multimedia
Delphi
by WojTec,
27. Dez 2011
It returns different colors than above script.
When steps > 15 then returns more colors than I want (in other words for steps 1-15 array has 1-15 colors, for more steps array hase more colors than should contain, eg for 16 it contains 19 colors or for 64 --> 99).
Maybe my idea is good but imprecise?
Forum: Multimedia
Delphi
by WojTec,
27. Dez 2011
Did you saw link above? So, generaly thera are 2 colors on input and on output I want to array with n colors between input colors - it mean not full gradient, but just n colors.
Forum: Multimedia
Delphi
by WojTec,
27. Dez 2011
var
V, T: Byte;
begin
SetLength(Result, 0);
V := 100 div (EnsureRange(ASteps, 1, 64) + 1);
T := V;
while (T < 100) and (100 - T >= V) do
begin
Forum: Multimedia
Delphi
by WojTec,
27. Dez 2011
I'm trying implement this tool:
http://www.design-lib.com/color_tool_mixer.php
I already have this:
type
TColorArray = array of TColor;
function GetColors(const C1, C2: TColor; Steps: Byte): TColorArray;