sketchHeight

Examples

sketchHeight example
void draw() {
  background(0);
  noStroke();
  fill(255);
  rect(40, 0, 20, sketchHeight);
  rect(60, 0, 20, sketchHeight / 2);
}

Description

System variable that stores the height of the display window. The value of sketchHeight is ordinarily 168.

Related

sketchWidth

Back to index