# \[SOLVED\] Fullscreen sketch scaling and preformance

**URL:** https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916
**Category:** Coding Questions
**Created:** [September 27, 2018, 6:45pm UTC](https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916 "2018-09-27T18:45:01Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)
#### Post date: [September 28, 2018, 4:31am UTC](https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916/2 "2018-09-28T04:31:59Z")

</div>

Check out:

> [@\[SOLVED\] Making the contents of a frame relative to its size](https://discourse.processing.org/t/solved-making-the-contents-of-a-frame-relative-to-its-size/3595/2):
>
> To make your canvas resizable, you can simply put surface.setResizable(true); in your setup. If you want to make it compatible to any size, the best way to do it would be to find everything that has an x, y, width or height value, and make it relative to width and height. Here’s an example of that: void setup() { size(200, 200); surface.setResizable(true); } void draw() { background(100, 100); float x = width/2; float y = height/2; float w = width/20; // Width float h = height/…

---

_[View the full topic](https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916)._
