Owner: P5 Editor porting project
API: P5 (r2)
World type: No Mind
Demonstrates the syntax for creating a two-dimensional (2D) * array. Values in a 2D array are accessed through two index values. * 2D arrays are useful for storing images. In this example, each dot * is colored in relation to its distance from the center of the image.
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. |