chipHeight()

[Graphics]
int chipHeight ();

Description

Gets the height of the chip.

Parameters

None.

Returns

An integer value that represents the height of the chip in pixels.

Example Code

The code gets the height of the chip and saves it into a variable.

void setup() {
    int width = chipWidth();   // gets the width of the chip
    int height = chipHeight(); // gets the height of the chip
}

void loop() {
}

Notes and Warnings

This function can be used to calculate relative position of graphics inside the Custom Element canvas