mk_03 Posted October 28, 2016 Share Posted October 28, 2016 (edited) 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 October 28, 2016 by mk_03 Forgot the tags Link to comment Share on other sites More sharing options...
mk_03 Posted October 28, 2016 Author Share Posted October 28, 2016 Solved: graphics.alpha= 0.5; Link to comment Share on other sites More sharing options...
Recommended Posts