MCPcopy Index your code
hub / github.com/processing/processing / size

Method size

core/src/processing/core/PApplet.java:2011–2023  ·  view source on GitHub ↗

( 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)

Source from the content-addressed store, hash-verified

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) {

Callers 8

removeEldestEntryMethod · 0.95
splitMethod · 0.45
matchAllMethod · 0.45
PShapeOBJMethod · 0.45
addChildrenMethod · 0.45
parseOBJMethod · 0.45
parseMTLMethod · 0.45
addMaterialMethod · 0.45

Calls 2

insideSettingsMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected