( begin auto-generated from size.xml ) Defines the dimension of the display window in units of pixels. The size() function must be the first line in setup() . If size() is not used, the default size of the window is 100x100 pixels. The system variables width and height
(int width, int height)
| 2009 | * @see PApplet#fullScreen() |
| 2010 | */ |
| 2011 | public void size(int width, int height) { |
| 2012 | // Check to make sure the width/height have actually changed. It's ok to |
| 2013 | // have size() duplicated (and may be better to not remove it from where |
| 2014 | // it sits in the code anyway when adding it to settings()). Only take |
| 2015 | // action if things have changed. |
| 2016 | if (width != this.width || |
| 2017 | height != this.height) { |
| 2018 | if (insideSettings("size", width, height)) { |
| 2019 | this.width = width; |
| 2020 | this.height = height; |
| 2021 | } |
| 2022 | } |
| 2023 | } |
| 2024 | |
| 2025 | |
| 2026 | public void size(int width, int height, String renderer) { |
no test coverage detected