Changes

Jump to: navigation, search
no edit summary
== Project Details ==
===pushStyle() and popStyle()===
The number of states saved is tracked by ''pushedStates''.
 
''pushStyle()'' calls ''curContext.save()'' and increments ''pushedStates'' by one.
 
''popStyle()'' checks if there are any saved states via ''pushedStates''. If there are none an error notice to the console or as a JavaScript alert, in an attempt to provide similar behaviour to Processing's implementation. If there are saved states, the function calls ''curContext.restore()'' and decrements ''pushedStates'' by one.
====Related Mozilla bugs====
1
edit

Navigation menu