p5.js-website
p5.js-website copied to clipboard
Confusing line in style() reference page
Increasing Access
The description in the style() reference page is worded in a confusing way, especially for beginners. Improving the clarity would make it more accessible.
Most appropriate sub-area of p5.js?
Reference
Feature request details
Specifically confusing is the line: "however, if a single argument is given in CSS syntax ('text-align:center'), .style() sets the CSS appropriately."
Full description as it is currently:
Sets the given style (CSS) property (1st arg) of the element with the given value (2nd arg). If a single argument is given, .style() returns the value of the given property; however, if a single argument is given in CSS syntax ('text-align:center'), .style() sets the CSS appropriately.