UncleZan Posted November 7, 2016 Share Posted November 7, 2016 var progressBar = new PIXI.Graphics(); progressBar.lineStyle(1,0xFFFFFF); progressBar.beginFill(0x658d7d,1); progressBar.drawRect(0,0,1060,12); progressBar.endFill(); I want to draw a white border of rect,but I don't understand why the border is transparent. Quote Link to comment Share on other sites More sharing options...
xerver Posted November 7, 2016 Share Posted November 7, 2016 It is pixel interpolation, notice that even though your border is 1 pixel wide it is 2 pixels in this screenshot. This usually happens when your object is at non-integer coordinates, or at a resolution where the coordinates you have don't align to pixels so it is interpolated between the two pixels that straddle the coordinate you asked for. This is done by the browser, not pixi. UncleZan 1 Quote Link to comment Share on other sites More sharing options...
UncleZan Posted November 9, 2016 Author Share Posted November 9, 2016 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.