Title: **Smooth Gradient**

Post by:**mogn** on **December 16, 2007, 03:09:04 am**

Post by:

I have build a 6 colour smooth gradient.

The 6 colours are used as control points in an equal distributed bezier curve

with the formular:

CFinal = C1*(1-t)^5+5*C2*t*(1-t)^4+10*C3*t^2*(1-t)^3+10*C4*t^3*(1-t)^2+5*C5*t^4*(1-t)+C6*t^5

where t is the controlling variable beteen 0 and 1.

A bezier curve takes on the first colour for t= 0 and the last colour for t=1 and a strong smothing between.

http://img69.imageshack.us/img69/6990/7274xj6.jpg (http://img69.imageshack.us/img69/6990/7274xj6.jpg)

The 6 colours are used as control points in an equal distributed bezier curve

with the formular:

CFinal = C1*(1-t)^5+5*C2*t*(1-t)^4+10*C3*t^2*(1-t)^3+10*C4*t^3*(1-t)^2+5*C5*t^4*(1-t)+C6*t^5

where t is the controlling variable beteen 0 and 1.

A bezier curve takes on the first colour for t= 0 and the last colour for t=1 and a strong smothing between.

http://img69.imageshack.us/img69/6990/7274xj6.jpg (http://img69.imageshack.us/img69/6990/7274xj6.jpg)

Title: **Re: Smooth Gradient**

Post by:**bigben** on **December 16, 2007, 06:50:47 am**

Post by:

Thanks for this.

I rearranged the clip file from the TGD to include the altitude processing as this would probably be a common usage, although it could obviously be used for other visualisations as well.

I rearranged the clip file from the TGD to include the altitude processing as this would probably be a common usage, although it could obviously be used for other visualisations as well.

Title: **Re: Smooth Gradient**

Post by:**mogn** on **December 16, 2007, 11:56:21 am**

Post by:

Thanks BigBen 8)