MCPcopy Index your code
hub / github.com/clips/pattern / translate

Function translate

pattern/canvas.js:1208–1213  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1206}
1207
1208function translate(x, y) {
1209 /* By default, the origin of the layer or canvas is at the bottom left.
1210 * This origin point will be moved by (x,y) pixels.
1211 */
1212 _ctx.translate(x, y);
1213}
1214
1215function rotate(degrees) {
1216 /* Rotates the transformation state, i.e. all subsequent drawing primitives are rotated.

Callers

nothing calls this directly

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…