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
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.
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.