Comments (4)
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.
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.
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.
ah, I will just close this issue, as it is taken care of with the use of createGraphics()
from p5.js.
Related Issues (20)
- Suggestion of a function to get screen coordinates HOT 16
- get() and/or pixelDensity() lag since v1.8.0 HOT 1
- background with alpha unexpected behavior HOT 1
- Current status of maintenance tasks, package audits, tracking tech debt, etc HOT 2
- On Latest Version of Safari SetUniform Doesn't Update in Draw Function HOT 7
- cam.ortho() on framebuffer cameras and no args uses the size from the main canvas
- Should `createCamera` still auto-set itself as the default camera? HOT 9
- inconsistent parameter handling HOT 2
- Possible bug with trigonometry functions HOT 2
- getting wrong language in the console. HOT 9
- Hit detection on 2D Shapes HOT 1
- Docker implementation HOT 3
- Broken link to dev_notes.md in the documentation HOT 1
- "point" class documentation text misprint HOT 9
- p5.Vector reflect() unexpectedly modifies surface normal argument HOT 3
- [p5.js 2.0 RFC Proposal]: Pruning HOT 2
- orbitControl() customizability HOT 3
- clearDepth() example broken
- Add an easier way to disable right-click context menus on the canvas HOT 8
- [p5.js 2.0 RFC Proposal]: Promises HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p5.js.