-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
add getTexture docs and examples for p5.strands #8446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev-2.0
Are you sure you want to change the base?
Conversation
|
I've shared this draft PR to get early feedback before converting the examples to the flat API To-do:
Questions:
current types but these are all getting converted to any and void in type-gen. |
I think so! After merging the flat strands API I believe that should be used now in all the reference examples, if I caught all of them,
For a function like this that only works in strands, I think a boilerplate sentence or two would be great, and then we can paste that into other reference items that are strands-only.
I think I've also converted a bunch of those now that the flat strands PR has been merged too. but yeah, the idea will be to try to not use inline functions.
This is a good question. They're kind of both |
By default it'll use linear interpolation. Currently for a framebuffer you can do |
Resolves #8438
Changes:
Add docs for getTexture in /src/strands/p5.strands.js including some examples. I tried to pick examples that don't need understanding of (m)any other shader functions.
Screenshots of the change:
Top section docs and first example:

Second example:

End section of docs (params, return value)

PR Checklist
npm run lintpasses - No, but my added code passes.