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

Method scale

core/src/processing/core/PApplet.java:12928–12931  ·  view source on GitHub ↗

Increases or decreases the size of a shape by expanding and contracting vertices. Objects always scale from their relative origin to the coordinate system. Scale values are specified as decimal percentages. For example, the function call scale(2.0) increases the dimension of a shape by 200%.<

(float s)

Source from the content-addressed store, hash-verified

12926 * @see PGraphics#rotateZ(float)
12927 */
12928 public void scale(float s) {
12929 if (recorder != null) recorder.scale(s);
12930 g.scale(s);
12931 }
12932
12933
12934 /**

Callers 1

handleDrawMethod · 0.95

Calls 1

scaleMethod · 0.65

Tested by

no test coverage detected