Py5Graphics.pop_style()

Py5Graphics.pop_style()#

The Py5Graphics.push_style() function saves the current style settings and pop_style() restores the prior settings; these functions are always used together.

Description#

The Py5Graphics.push_style() function saves the current style settings and pop_style() restores the prior settings; these functions are always used together. They allow you to change the style settings and later return to what you had. When a new style is started with Py5Graphics.push_style(), it builds on the current style information. The Py5Graphics.push_style() and pop_style() method pairs can be nested to provide more control.

This method is the same as pop_style() but linked to a Py5Graphics object. To see example code for how it can be used, see pop_style().

Underlying Processing method: PGraphics.popStyle

Signatures#

pop_style() -> None

Updated on March 06, 2023 02:49:26am UTC