processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

Docs for scale

Open soegaard opened this issue 4 years ago • 0 comments

Issue description

The documentation of scale says:

"For example, the function call scale(2.0) increases the dimension of a shape by 200%."

This is unfortunately a mistake. Let's say the unit of the x-axis before the scaling is 10, then after it is 2*10=20. The growth is 20-10=10. Which amounts to 100%.

Scaling with s gives in general a growth of s-1.

Now it not just the sentence above that needs a change: the parameters s, x and y are described as "percentages". This should be changed to "scalar" or "factor" or similar.

URL(s) of affected page(s)

https://processing.org/reference/scale_.html

Proposed fix

soegaard avatar Jun 11 '21 14:06 soegaard