Hi jens,

Yes I just found that function today and it solved the problem.
Thanks for posting it too :)

Cheers

-Sameer

On May 5, 12:57 pm, jens lofberg <[email protected]> wrote:
> Hi
> I found this function if AS3 to be very helpful in simular cases:
>
> ex: giving a white color with 50% black
> Color.interpolateColor(0xffffff, 0x000000, 0.5)
>
> jens
>
> smaira a crit :
>
> > Hi,
>
> > I'm a beginner using Away3D. I'm trying to achieve something simple (I
> > guess!). I've made an example in flash to explain what I'm trying to
> > do. Basically, I would like that the color of a mesh changes from 0%
> > (Yellow) to 100% (Red) based on a slider. The problem is that I am
> > applying a ColorMaterial on the faces. I looked at the docs and the
> > ColorMaterial doesn't have any "Tint" property or a function to do so.
> > Neither can I set the Blend Mode to additive or something. I'm
> > guessing that how the tinting would work is that the "Base" color of
> > the face would be set to "Yellow" and a Red tint with an alpha value
> > (based on the slider) would be added on it. Right ?
>
> > I'd really appreciate it, if someone could point me in the right
> > direction.
>
> > Here's my flash example with a movieclip instead of a mesh :
> >http://dazzlecode.com/downloads/ChangeTint.swf
>
> > Thanks a bunch
>
> > Cheers!
>
> > -Sameer

Reply via email to