Colorinterpolator with 3 colours !

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Colorinterpolator with 3 colours !

Davidave
Hey guys ! is it possible to interpolate between 3 colours in java3d ??

like from blue to red and then from red to green ?!

you can set a start and an end colour! but is it possible with 3 ? or is it possible to usw more than 1 interpolator ?
Reply | Threaded
Open this post in threaded view
|

Re: Colorinterpolator with 3 colours !

gouessej
Administrator
You can use javax.media.j3d.ColorInterpolator but it uses a start color and an end color. You can write your own interpolators too.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Colorinterpolator with 3 colours !

Davidave
hey. how do i do that ? :D
Reply | Threaded
Open this post in threaded view
|

Re: Colorinterpolator with 3 colours !

gouessej
Administrator
Create a class that extends the abstract class javax.media.j3d.Interpolator.
Julien Gouesse | Personal blog | Website