# ArrayToCanvas

Load virtual canvas from array

Syntax: `ArrayToCanvas(arr[],size=sizeof arr)`

* `arr[]` source array
* `size` size of the array, must be 54, otherwise exception is raised

Returns: Function always returns 0

Notes: This function basically copies user's array to the virtual canvas.

Example: `ArrayToCanvas(temp)`, store array temp to canvas

See also: [CanvasToArray](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/canvastoarray), [Push](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/push), [Pop](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/pop), [PushPopInit](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/pushpopinit)
