# Windows Sketch Screen Size Problem

**URL:** <https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298>\
**Category:** Coding Questions\
**Created:** [August 10, 2022, 6:04pm UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298 "2022-08-10T18:04:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 10, 2022, 6:04pm UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/1 "2022-08-10T18:04:49Z")

</div>

Hello everyone, I got this problem. When I’m working on Mac, I can see my design in sketch screen as exactly as I coded. But then when I try to open in my Windows laptop, I see the screen size different. In my last draft I mentioned below, I can see the whole screen on Mac but on my computer it only appears half above my screen size so i can’t even see the close button so I can’t drag and can’t see what I did as a whole. How can I solve this problem?

 ![ice_screenshot_20220810-195120](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/f/9/f9121c5e1dc5a67c823efa0871200453291647b2.png)

```auto
/**
 * Extrusion. 
 * 
 * Converts a flat image into spatial data points and rotates the points
 * around the center.
 */

PImage a;
boolean onetime = true;
int[][] aPixels;
int[][] values;
float angle;

void setup() {
  size(2000, 2000, P3D);
  
  aPixels = new int[width][height];
  values = new int[width][height];
  noFill();

  // Load the image into a new array
  // Extract the values and store in an array
  a = loadImage("love.jpeg");
  a.loadPixels();
  for (int i = 0; i < a.height; i++) {
    for (int j = 0; j < a.width; j++) {
      aPixels[j][i] = a.pixels[i*a.width + j];
      values[j][i] = int(blue(aPixels[j][i]));
    }
  }
}

void draw() {
  background(0);
  translate(width/2, height/2, -height/2);
  scale(2.0);
  
  // Update and constrain the angle
  angle += 0.005;
  rotateY(angle);  
  
  // Display the image mass
  for (int i = 0; i < a.height; i += 4) {
    for (int j = 0; j < a.width; j += 4) {
      stroke(values[j][i], 255);
      line(j-a.width/2, i-a.height/2, -values[j][i], j-a.width/2, i-a.height/2, -values[j][i]-10);
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [August 10, 2022, 11:26pm UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/2 "2022-08-10T23:26:55Z")

</div>

Hi

Try to use less value than 2000

```auto
size(2000, 2000, P3D);

```

---

<div class="post-metadata">

**Author:** ![JSGauthier](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jsgauthier/32/9910_2.png) [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Post date:** [August 11, 2022, 2:02am UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/3 "2022-08-11T02:02:45Z")

</div>

Try using the setLocation()  
It will locate the window (surface) at what ever x,y position you wishon your screen.

> **[Reference](https://processing.org/reference/setLocation_.html)**
>
> The setLocation() function defines the position of the Processing sketch in relation to the upper-left corner of the computer screen. There are more features of PSurface documented…

---

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 11, 2022, 11:12am UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/4 "2022-08-11T11:12:41Z")

</div>

Hi @jafal ,

I tried this but didn’t work unfortuanetly.

---

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 11, 2022, 11:13am UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/5 "2022-08-11T11:13:30Z")

</div>

Hi @JSGauthier ,  
This worked, thank you so much.

---

<div class="post-metadata">

**Author:** ![JSGauthier](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jsgauthier/32/9910_2.png) [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Post date:** [August 11, 2022, 9:21pm UTC](https://discourse.processing.org/t/windows-sketch-screen-size-problem/38298/6 "2022-08-11T21:21:11Z")

</div>

I’m glad this suggestion worked for you. Can you set my response as a solution so others can help newer posts?
