You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By simplifying a process, making information more easily accessible by beginners.
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)
Feature enhancement details
The color object's r,g,b and a values could be accessible via literal properties called r,g,b,a (or at a push red, green,blue etc.)
So that is to say you could get access to the Red value of a color object via:
color.r or color.red
and not have to go into:
color.levels[0]
The text was updated successfully, but these errors were encountered:
This is a great idea—accessing color components directly via color.r, color.g, color.b, and color.a would definitely make the API more intuitive, especially for beginners. It improves readability and aligns well with p5.js’s focus on accessibility and simplicity.
Relevant sub-areas: Color, Accessibility.
I'd be happy to contribute to this! Could you please point me to the relevant file(s) or location in the codebase where this change should be made?
Increasing access
By simplifying a process, making information more easily accessible by beginners.
Most appropriate sub-area of p5.js?
Feature enhancement details
The color object's r,g,b and a values could be accessible via literal properties called r,g,b,a (or at a push red, green,blue etc.)
So that is to say you could get access to the Red value of a color object via:
color.r or color.red
and not have to go into:
color.levels[0]
The text was updated successfully, but these errors were encountered: