Hi, I am facing a problem that I can’t seem to find a solution online.
I have a basic game app with an ellipse that goes up and down automatically. What I try to accomplish is to have a gradient that fills the background and another that fills the ellipse. It is mostly for cosmetic purposes, but it is to fit the overall style I am looking for:
I basically created my ellipse as a shape, but I can’t seem to find how to add more than a flat color. How can I create a gradient to fill shapes?
This is what I use to create the ellipse:
this.ellipse = this.add.ellipse(game.config.width / 2, game.config.height / 2, size, size, color);