FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A Question about Gradient-Calculation.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A Question about Gradient-Calculation.
Posted: Fri Sep 04, 2009 10:37 PM
Hello,

Working with Gradients, I noticed inside my Tools and also in the
new xbrowse-Gradient-painting, the result of the centered Color-calculation
is not linear.



Just 1 % changing from 45% to 44%, shows a big Difference.
To make this Effect better visible, Start- and End-Color should have the same Value.
In this Example, the yellow Center-Color must move in equal steps to left or right.
The Center-Color spreads with certain Values.


is there a Solution, to solve this problem ?

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: A Question about Gradient-Calculation.
Posted: Fri Sep 11, 2009 01:05 AM
Uwe,

You can review the source code of GradientFill() in FWH\source\bar.prg (surely we will migrate it from there to a different module soon).

Wiki docs for GradientFill():
http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_gradientfill
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A Question about Gradient-Calculation.
Posted: Fri Sep 11, 2009 01:47 AM

Antonio,

I corrected the wrong Screenshots, to explain the Problem.
They have been lost, overwritten with different ones.

Best Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion