PpushStyle function saves the current style settings and
PpopStyle restores the prior settings. Note that 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
PpushStyle, it builds on the current style information. The
PpopStyle functions can be nested to provide more control. (See example for a demonstration.)
The style information controlled by the following functions are included in the style:fill, stroke, tint, strokeWeight, strokeCap, strokeJoin, imageMode, rectMode, ellipseMode, shapeMode, colorMode, textAlign, textFont, textMode, textSize, textLeading, emissive, specular, shininess, ambient.