Skip to content

push() and pop() #252

@trych

Description

@trych

As @ffd8 suggested here:

should we consider adding a push() + pop() that simply mirrors our existing pushMatrix() and popMatrix()? P5js, switched to that style (…) would make the new ability of easily porting code from P5js thanks to the b-less upgrade that much smoother.

I think it's a good idea, but at the same time, I would not want to clutter our reference.

So here is a suggestion: How about we just implement push() and pop() into the code as simple wrappers, but just have pushMatrix() and popMatrix() in the docs and tutorials.

That way we have the both of best worlds: an official "suggested way", uncluttered docs, but code pasted over from p5.js still works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions