Push and pop save and restore style info.
9.3: Transformations Pt.3 - p5.js Tutorial
Code for this video.
Push and Pop will save fill colors, border colors, line thickness, etc. and bring them back later.
Stacks and Queues discussed.
Stack: last one in, first one out.
Queue: first one in, first one out.
Push and Pop refer to a STACK.
Don't bother with last two minutes of this video...he gets into details about matrices that are irrelevent.
Code for this video.
Push and Pop will save fill colors, border colors, line thickness, etc. and bring them back later.
Stacks and Queues discussed.
Stack: last one in, first one out.
Queue: first one in, first one out.
Push and Pop refer to a STACK.
Don't bother with last two minutes of this video...he gets into details about matrices that are irrelevent.