Add style stack - #214
Conversation
|
Thanks, @tychedelia! I see this implements This is one difference between Processing and p5.js: Processing includes three separate pairs of functions; If it doesn't add too much complexity, I think it'd be good to include all three for backwards compatibility. |
Yes! We already have matrix support (what I refer to here as "transforms"), so this just rounds it out. |
catilac
left a comment
There was a problem hiding this comment.
LGTM. I think the color choices for the example make it a bit hard to see, but after making the circle darker I could see it! Looks cool.
Adds the style stack, which works similarly to the existing transform stack and cleans up our
RenderStatestruct that had been overflowing with style related options. Also adds the combo push/pop operations that also capture the transform state.