Please enable JavaScript to use CodeHS

CodeHS Glossary


`translate(x, y)` JavaScript

Sets the amount to shift the origin of the canvas. The x parameter specifies left/right translation, the y parameter specifies up/down translation.