Giter VIP home page Giter VIP logo

Comments (4)

msawired avatar msawired commented on June 19, 2024 2

Thank you very much for all this! This will be really helpful to help creating transitions.

from p5.js.

davepagurek avatar davepagurek commented on June 19, 2024 1

I think we have pre and post hooks already for before/after draw described here: https://github.com/processing/p5.js/blob/main/contributor_docs/creating_libraries.md

Extending that to also have pre/post setup etc hooks in the same manner would make sense to me!

from p5.js.

msawired avatar msawired commented on June 19, 2024

Great, didn't know about this! I think I could use pre and post for setup, however. There are many sketches that do not have or utilize draw function. Also, is there a reason registerMethod is used instead of a more traditional on? Are there any differences on how they behave? ie. Can we register multiple methods to the same event, can we 'unregister', etc.
I will play with what is available right now and post here any updates.

from p5.js.

davepagurek avatar davepagurek commented on June 19, 2024

Multiple functions can be registered to the same event, but it looks like there isn't an unregisterMethod. Adding that would also help make this more complete!

from p5.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.