-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Document parameters of p5.Color constructor #6006
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you! |
Does this still happen if you call this in Also: hi, thanks for bezierjs! |
haha, you're welcome =D It does not. I ran into this while running someone else's code in a different project, so I guess I'll report back that they may want to fixer-upper their code ;) |
Sounds good! I'm going to close this issue for organizational purposes but feel free to discuss more if anything new comes up and I can always reopen it 🙂 |
Just came across this myself. Calling Btw. the docs of |
Thanks @martinfalk, makes sense, I can reopen this as a documentation issue on the p5.Color class. The constructor has two required parameters, but aren't mentioned in the docs. |
Although it's possible to use A fix for this issue would add documentation for these so that they show up in the p5 reference (and, even better, mention that |
Is it the "easiest" way, or is it the "recommended" way? Because if it's the latter, the docs should probably use some design language that makes it clear that this page is an implementation document and is only useful to folks who are mixing P5js with other code (e.g. using bare P5 inside of a larger JS app) rather than being part of the API for writing P5js code. (it's mostly information for folks who are mix-and-matching regular JS with P5js interspersed) |
I think we can go with "recommended" as the language. In general the functions that create objects for you internally handle creating the objects on the right p5 instance, and using a constructor manually is for advanced users. It's a bit of a limitation of our current docs system that we don't have a good way of using |
Hey, guys! I did not fine a better place to ask, so, please, let me know if there is an issues/discussion/forum which is a proper place. Question is related to p5js documentation. |
@alex-key definitely want to at least file a separate issue for that, since it's not related to p5.Color? |
@Pomax yeah, that's what I asked in the first statement. |
@alex-key The documentation system is definitely not great and is something I want to work on for a long time now. The underlying system is a system called YUIDoc and the static page generation is using Assemble, both of which are abandoned by their original authors. We have specific requirements that basically precludes us from switching to other stacks.
For inline documentation, YUIDoc is the only one currently (that I know of) that uses the JSDoc format and generate a JSON file that we can use for rendering (JSDoc last I checked does not generate a JSON file containing the documentation in a structured format). For static pages, I'm open to moving away from Assemble but we have the internationalization bits built alongside it so any new system will need to integrate our existing system without needing us to rebuild/reformat all our existing translations. A new website is currently in discussion in the very early stages so that is also another reason to not go all in on a redesign/rebuild if the new website eventually goes with something completely different. That's all a bit long and should really be another issue as mentioned 😅 |
@limzykenneth Thank you, Kenneth for the detailed explanation. I will create another issue and copy your answer there. |
Hey @davepagurek . |
Thanks @sawaisinghh! The idea would be to edit the doc comments for the We'd like it to look similar to what we've done for other classes, p5.Graphics, which describes each required parameter: Lines 20 to 23 in 393ddbc
We should also mention in the description of the class (in the area before the
|
Thanks @davepagurek for explaning very well. I understood the issue. I can fix it. Can you please assign it to me. |
Thanks @sawaisinghh! |
…teres #6006 issue: Update p5.Color.js
Most appropriate sub-area of p5.js?
p5.js version
1.5.0 (cloudflare CDN)
Web browser and version
all of them
Operating System
n/a
Steps to reproduce this
Steps:
Yields the following error:
The text was updated successfully, but these errors were encountered: