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

Method translate

core/src/processing/core/PApplet.java:12739–12742  ·  view source on GitHub ↗

Specifies an amount to displace objects within the display window. The x parameter specifies left/right translation, the y parameter specifies up/down translation, and the z parameter specifies translations toward/away from the screen. Using this function with the z param

(float x, float y)

Source from the content-addressed store, hash-verified

12737 * @see PGraphics#scale(float, float, float)
12738 */
12739 public void translate(float x, float y) {
12740 if (recorder != null) recorder.translate(x, y);
12741 g.translate(x, y);
12742 }
12743
12744
12745 /**

Callers 1

handleDrawMethod · 0.95

Calls 1

translateMethod · 0.65

Tested by

no test coverage detected