Jump to content

Bitmapdata example not working in typescript


charlie_says
 Share

Recommended Posts

Hi,

I'm trying to do something similar to this example:

https://phaser.io/examples/v2/bitmapdata/radial-gradient

 

But, I'm working in TypeScript, and it doesn't 'like' the last part:

    bmd.circle(outerCircle.x, outerCircle.y, outerCircle.radius, grd);

gets me the error:

Argument of type 'CanvasGradient' is not assignable to parameter of type 'string'.

Any ideas how I resolve this?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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