Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by drhayes

I didn't!

Here's a linear gradient example if you don't know what I'm talking about.

I was digging through the Impact source code and found that ig.game.clearColor was used to set the fillStyle of the canvas before filling it. fillStyle takes CSS style colors, but it also takes linear gradients! Create one using the ig.system.context property and set it to ig.game.clearColor.

THIS IS AWESOME.

I'm working on an entity that simulates the sky and animates it through the update cycle. That way the background of my outdoor levels will have a day-night cycle.

1 decade ago by Graphikos

You can indeed. Just go easy on the gradient usage. It's one of the more expensive draws you can do.
Page 1 of 1
« first « previous next › last »