PublicFunction.gradientcolor how it works?

Questions about MultiCharts .NET and user contributed studies.
CarseWhite
Posts: 26
Joined: 30 Jan 2014
Been thanked: 4 times

PublicFunction.gradientcolor how it works?

Postby CarseWhite » 21 Dec 2016

This PublicFunction.Gradientcolor has a few parameters that are not very clear in how they formulize the parameters.

Is there source code?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: PublicFunction.gradientcolor how it works?

Postby Henry MultiСharts » 22 Dec 2016

Hello CarseWhite,

Here are the parameters the function accepts:
val - color will be calculated for this value
min - minimum possible value of val
max - maximum possible value of val
lcolor - color for minimum value
rcolor - color for maximum value

CarseWhite
Posts: 26
Joined: 30 Jan 2014
Been thanked: 4 times

Re: PublicFunction.gradientcolor how it works?

Postby CarseWhite » 22 Dec 2016

That doesn't help much.

the formula, what's the math behind the parameters? I can't use something that I do not know how it works for my own safety.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: PublicFunction.gradientcolor how it works?

Postby Henry MultiСharts » 23 Dec 2016

CarseWhite,

PublicFunction.Gradientcolor is a built in function, its source code cannot be viewed. It is utilized in the function NormGradientColor. You can check the studies that use the NormGradientColor for reference.


Return to “MultiCharts .NET”