Skip to content
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

inconsistent parameter handling #7078

Open
3 of 17 tasks
rrshaban opened this issue May 29, 2024 · 2 comments
Open
3 of 17 tasks

inconsistent parameter handling #7078

rrshaban opened this issue May 29, 2024 · 2 comments

Comments

@rrshaban
Copy link

rrshaban commented May 29, 2024

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

web version

Web browser and version

124.0

Operating system

OSX

Steps to reproduce this

documentation in general would highly benefit from traditional parameter notation;
e.g.
"Stroke(color)
Stroke(color, alpha)
Stroke(r, g, b)
Stroke(r, g, b, alpha)
Stroke(rgb)
Stroke(rgb, alpha) < this one I tried and it broke
"

is this a javascript thing?

@rrshaban rrshaban added the Bug label May 29, 2024
Copy link

welcome bot commented May 29, 2024

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!

@limzykenneth
Copy link
Member

Hi @rrshaban, stroke(rgb, alpha) is not a supported parameter signature as documented in the reference. The supported options are

stroke(v1, v2, v3, [alpha])

stroke(value)

stroke(gray, [alpha])

stroke(values)

stroke(color)

Did you find stroke(rgb, alpha) somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants