# CanvasToArray

Store virtual canvas to array

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

* `arr[]` destination array
* `size` size of the array. Must be 54, otherwise exception is raised

Returns: Function always returns 0

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

Example: `CanvasToArray(temp)`, stores canvas to array temp

See also: [ArrayToCanvas](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/arraytocanvas), [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)
