arbor icon indicating copy to clipboard operation
arbor copied to clipboard

[Feature] Support Retina Resolution

Open hartator opened this issue 11 years ago • 3 comments

Any plan to support retina resolution?

It looks kind of blurry on my macbook pro retina, maybe I've missed something.

hartator avatar Jun 29 '13 14:06 hartator

I think it looks fine unless you are using pictures as background or elements.

On Saturday, June 29, 2013, hartator wrote:

Any plan to support retina resolution?

It looks kind of blurry on my macbook pro retina, maybe I've missed something.

— Reply to this email directly or view it on GitHubhttps://github.com/samizdatco/arbor/issues/49 .

Sent from Gmail Mobile

yyang avatar Jun 30 '13 06:06 yyang

Actually, it's not very sharp, there is some tricks we can do to make a canvas retina-compatible: http://web.archive.org/web/20130415082122/http://joubert.posterous.com/crisp-html-5-canvas-text-on-mobile-phones-and

I don't have a lot experience with that though.

On Sun, Jun 30, 2013 at 8:02 AM, Steve Yang [email protected]:

I think it looks fine unless you are using pictures as background or elements.

On Saturday, June 29, 2013, hartator wrote:

Any plan to support retina resolution?

It looks kind of blurry on my macbook pro retina, maybe I've missed something.

— Reply to this email directly or view it on GitHub< https://github.com/samizdatco/arbor/issues/49> .

Sent from Gmail Mobile

— Reply to this email directly or view it on GitHubhttps://github.com/samizdatco/arbor/issues/49#issuecomment-20242791 .

hartator avatar Jul 01 '13 14:07 hartator

Simply resizing the canvas to width / devicePixelRatio is problematic for the mouse events in arborjs, though. You'll have to adjust your calculations for touch events to incorporate the particleSystem.screenSize setting; otherwise, your mouse events won't work as you expect them to. (For example, dragging on the screen affected a node in a different part of the screen when I tried to adjust for a Retina display; I'm still working on the solution to this.)

jessepinho avatar Feb 02 '14 20:02 jessepinho