pop()

Structure

Description

Restores the previous drawing style settings and transformations saved with push().

Syntax

void pop()

Parameters

None

Returns

void

Related

Under the Hood

From Processing.h:

int pop() { if (data.empty()) throw std::runtime_error("Can't call pop() on an empty list"); int v = data.back(); data.pop_back(); return v; } float pop() { if (data.empty()) throw std::runtime_error("Can't call pop() on an empty list"); float v = data.back(); data.pop_back(); return v; } std::string pop() { if (data.empty()) throw std::runtime_error("Can't call pop() on an empty list"); std::string v = data.back(); data.pop_back(); return v; } void pop();

Under the Hood

From Processing.cpp:

void PApplet::pop() { glPopMatrix(); popStyle(); }