# Display Issue - Same sketch displays diff on diff computers

**URL:** https://discourse.processing.org/t/display-issue-same-sketch-displays-diff-on-diff-computers/31305
**Category:** Beginners
**Created:** [July 17, 2021, 5:25pm UTC](https://discourse.processing.org/t/display-issue-same-sketch-displays-diff-on-diff-computers/31305 "2021-07-17T17:25:23Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [July 17, 2021, 9:31pm UTC](https://discourse.processing.org/t/display-issue-same-sketch-displays-diff-on-diff-computers/31305/6 "2021-07-17T21:31:45Z")

</div>

Hello,

This has to do with the default pixelDensity() for each device:

[https://p5js.org/reference/#/p5/pixelDensity](https://p5js.org/reference/#/p5/pixelDensity)  
[https://p5js.org/reference/#/p5/pixels](https://p5js.org/reference/#/p5/pixels)

I get the same results as you do on the same device with this (one of them) added to setup() :

```auto
 pixelDensity(1); //Shows 1 fractal
 pixelDensity(2); //Shows 2 fractals

```

I first came across this issue with this example and had to set it:

> [@Webcam interaction (colour component)](https://discourse.processing.org/t/webcam-interaction-colour-component/30577/2):
>
> Hello, I changed topic to p5.js category. See example here: Example may be a bit complicated (moving tiles) but I had to sort out color for pixels[] and learned this recently. References: [https://p5js.org/reference/#/p5.Image/pixels](https://p5js.org/reference/#/p5.Image/pixels) Have fun! slight_smile

`:)`

---

_[View the full topic](https://discourse.processing.org/t/display-issue-same-sketch-displays-diff-on-diff-computers/31305)._
