We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
push/pop for drawing mode (Read 1651 times)
push/pop for drawing mode
Aug 13th, 2008, 9:17pm
 
I've been working on and off on some UI-related classes in Processing. It would be really handy to be able to 'push' the current drawing settings (fill color, stroke color, stroke weight, et cetera) so a method that changes them can restore the settings before it returns. Something similar for the current font settings would also be great.

I apologize if this feature is already implemented, or if there is a simple work-around that I've overlooked.

Thanks!
Re: push/pop for drawing mode
Reply #1 - Sep 11th, 2008, 10:01am
 
Just in case you missed it, there is a discussion on undoing drawing settings in the Syntax section, which I hope you would find helpful.
Page Index Toggle Pages: 1