Jump to content

Trouble using color interpolate


ScottRedrup
 Share

Recommended Posts

Hey guys,

 

I'm having a play around with changing the background color from one color to another color over time.

 

To do this I'm using interpolateColor. Is that the correct thing to use?

 

For example, I'm declaring two valid hexadecimal colors and then writing:

 

this.stage.backgroundColor = Phaser.Color(color1,color2,100,0,1);

 

But all I'm getting is a black screen. Does that line need to be in a for loop or will it work fine without one?

 

Thanks!

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...