MCPcopy Index your code
hub / github.com/benfry/processing4 / scale

Method scale

core/src/processing/core/PShape.java:3322–3325  ·  view source on GitHub ↗

Increases or decreases the size of a shape by expanding and contracting vertices. Shapes always scale from the relative origin of their bounding box. Scale values are specified as decimal percentages. For example, the method call scale(2.0) increases the dimension of a shape by 200%. Subseque

(float s)

Source from the content-addressed store, hash-verified

3320 * @see PShape#resetMatrix()
3321 */
3322 public void scale(float s) {
3323 checkMatrix(2); // at least 2...
3324 matrix.scale(s);
3325 }
3326
3327
3328 public void scale(float x, float y) {

Callers

nothing calls this directly

Calls 2

checkMatrixMethod · 0.95
scaleMethod · 0.65

Tested by

no test coverage detected