Crayonberry Posted February 26, 2014 Share Posted February 26, 2014 I'm still learning pixi, so I'm not sure if I'm just doing something wrong, but when I draw simple lines using PIXI.Graphics, they look blurry on retina displays, but fine on normal displays. Here's a quick JSFiddle for testing purposes: http://jsfiddle.net/BNLAd/ I've tried a few different combinations of adjusting the position of the line by 0.5, as well as the line thickness by 0.5, but nothing seems to do the trick. Any ideas? Quote Link to comment Share on other sites More sharing options...
Sebi Posted February 26, 2014 Share Posted February 26, 2014 I'm not much into retina but what happens if you draw the line at double the thickness and then scale the canvas according to the device pixel ratio? Quote Link to comment Share on other sites More sharing options...
Crayonberry Posted February 27, 2014 Author Share Posted February 27, 2014 No luck... I've also tried a few suggestions such as:http://elev.at/predawnblog/posts/2011/03/crisp-html-5-canvas-text-on-mobile-phones-and.htmlbut it's resulting in my drawing being shrunk down (although it kinda looks crisp lol), while the rest of the canvas is still taking up the normal amount of space... I'm not sure if I'm just doing something wrong or if PIXI is getting in the way. 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.