Jump to content

Graphics.Fill with Transparency on Polygon


mk_03
 Share

Recommended Posts

I have this code to add a rectangle in phaser and works fine but it fills with a solid color and i want some transparency in my poly. Is that possible?     

 

        poly = new Phaser.Polygon(p_1, p_2, p_3, p_4);

        graphics = game.add.graphics(0, 0);

        graphics.beginFill(0xFF33ff);
        graphics.drawPolygon(poly.points);
        graphics.endFill();

         

Edited by mk_03
Forgot the tags
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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