Git Product home page Git Product logo

Comments (4)

evhan55 avatar evhan55 commented on August 17, 2024

Hi Andres, I don't know if you remember me but we met at Art&&Code back in 2009.

Anyhow, I am contributing to this library with Lauren these days.

Thank you for testing it and submitting feedback. As it stands, the library is still very experimental and these basic functions such as createCanvas(), etc, are changing daily.

The very latest version of the library will always be in /lib/pjs.js.

The various tests, documentation and example code will be at various levels of compatibility with the latest stable version of the library. I am curious to hear from you, what is the best way to keep some sample code that people test when they are curious about the library? This sample code would need to be very small, so that it can be updated easily as we change the core API. Or, should we have better disclaimers that the sample code throughout the repository is still experimental?

Best,
Evelyn

from p5.js.

lmccart avatar lmccart commented on August 17, 2024

hi andres! ditto to everything evelyn said... and apologies for the haphazard state of things as we continuously refactor. we've just nailed down the last main points for startup and canvas creation, and should have something a little more stable by next week.

just really quickly, createCanvas has become createGraphics (to align more with the current processing). it's essentially the same as size but named differently to create more of a continuity of logic when adding other canvases or other dom elements. I'll update the docs and examples soon.

we'd love to hear any feedback or thoughts you have!

from p5.js.

codeanticode avatar codeanticode commented on August 17, 2024

Hi Evelyn and Lauren, thanks a lot for your quick response, and for your work with processing-js. Yes, using createGraphics() solves the pCurCanvas error, this is great!

Replying to Evelyn's question regarding sample code and docs, I don't think that updating all the examples at this point of the development process would be a good use of your time. I noticed that you ported some of the code examples from the learning processing book to pjs, which is great (they still use createCanvas btw), but updating all of those takes some time and it probably won't make much sense until the API stabilizes a bit more.

However, I think that having one or two simple test sketches that are kept up-to-date with the most recent changes (in the stable branch) would a good idea, so folks who are interested in playing around with the lib in its current stage can get started quickly. Also, adding a brief disclaimer in the readme page saying that the API is not yet finalized would be useful so people are aware of the experimental nature of the code.

In any case, I'm very excited about processing-js, thanks again for moving forward with it! My plan is to actually get into javascript through it :-) I have a couple of simple Processing sketches that would like to put on the web using pjs over the next few days, so I'd be very happy of giving you some feedback from my experience as it unfolds.

And of course Evelyn, I remember you from Art&Code 09, it is nice to get in touch again!

Andres

from p5.js.

codeanticode avatar codeanticode commented on August 17, 2024

ah, I will just close this issue, as it is taken care of with the use of createGraphics()

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.