processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.39k stars 3.28k forks source link

Slight mistake in description of scale() effect in reference #7121

Open Nuclear-Crow opened 2 months ago

Nuclear-Crow commented 2 months ago

Increasing access

This issue pertains to the reference for one of the functions. A clearer reference helps with accessibility for everyone.

Most appropriate sub-area of p5.js?

Feature enhancement details

The reference page for the scale() function contains the following:

By default, transformations accumulate. For example, calling scale(1) twice has the same effect as calling scale(2) once. The push() and pop() functions can be used to isolate transformations within distinct drawing groups.

This is incorrect, as calling scale(1) twice does nothing, since a coefficient of 1 does not change the scale. To provide a correct and clear example, the following can be written instead:

[...] For example, calling scale(2) twice has the same effect as calling scale(4) once.

welcome[bot] commented 2 months ago

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!

Qianqianye commented 2 months ago

Thanks @Nuclear-Crow! Tagging @nickmcintyre to take a look

nickmcintyre commented 1 month ago

Good catch @Nuclear-Crow!