Owner: P5 Editor porting project
API: P5 (r2)
World type: No Mind
The translate() function allows objects to be * moved to any location within the window. The first parameter * sets the x-axis offset and the second parameter sets the * y-axis offset. This example shows how transforms accumulate.
Type: Public. Plain JS.
View plain JS.
Get Embed code.
Get New window embed code.
Get Autorun embed code.
5 runs
Run | |
Edit | Must be logged in. |
Update image | Must be logged in. |
Clone | Must be logged in. |
New Mind | Only valid for Worlds that use Minds. |
Change World type | Must be owner. |
Change API | Must be owner. |
Delete | Must be owner. |