You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its really performant to turn canvas data into a 2D JavaScript array of rows and columns of pixels. Its unfortunately less performant to turn a 2D JavaScript array into an Elm list or a JavaScript list.
Perhaps there could be type CanvasData. and functions like `transform : Position -> (Color -> Color)
transformPixel:Position-> (Color->Color) ->CanvasDatafromData:CanvasData->Size->Canvastype alias Color=(Int,Int,Int,Int)
The text was updated successfully, but these errors were encountered:
Chadtech
changed the title
To List (List (Int, Int, Int, Int) )
CanvasData type
Sep 30, 2017
Its really performant to turn canvas data into a 2D JavaScript array of rows and columns of pixels. Its unfortunately less performant to turn a 2D JavaScript array into an Elm list or a JavaScript list.
Perhaps there could be type
CanvasData
. and functions like `transform : Position -> (Color -> Color)The text was updated successfully, but these errors were encountered: