# How to set sketch size as a ratio of displayWidth

**URL:** https://discourse.processing.org/t/how-to-set-sketch-size-as-a-ratio-of-displaywidth/15160
**Category:** Processing for Android
**Created:** [November 3, 2019, 12:46am UTC](https://discourse.processing.org/t/how-to-set-sketch-size-as-a-ratio-of-displaywidth/15160 "2019-11-03T00:46:24Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 3, 2019, 1:10pm UTC](https://discourse.processing.org/t/how-to-set-sketch-size-as-a-ratio-of-displaywidth/15160/5 "2019-11-03T13:10:24Z")

</div>

Please read following topic.

> [@Change the PRESENT mode background color in android](https://discourse.processing.org/t/change-the-present-mode-background-color-in-android/14006):
>
> In normal java mode we can change the frame bacground color with f.i.: void setup(){ size(200,200); frame.setBackground(new java.awt.Color( 255 , 0 , 0 )); } But android does not work with the awt lib, but seemingly the android.graphics lib instead How can we change the layout color in android mode.

---

_[View the full topic](https://discourse.processing.org/t/how-to-set-sketch-size-as-a-ratio-of-displaywidth/15160)._
