Same as main functions only instead of Int
uses Color
(avh4/elm-color
) to represent pixel
fromList : Image.Width -> List Color -> Image.Internal.ImageData.Image
Create Image
of List Color
where each Color
is pixel
fromList2d : List (List Color) -> Image.Internal.ImageData.Image
Create Image
of List (List Int)
where each Color
is pixel
fromArray : Image.Width -> Array Color -> Image.Internal.ImageData.Image
Create Image
of Array Int
where each Color
is pixel
fromArray2d : Array (Array Color) -> Image.Internal.ImageData.Image
Create Image
of Array (Array Int)
where each Color
is pixel
toList : Image.Internal.ImageData.Image -> List Color
Take Image
of and converts it to List Int
where each Color
is pixel
toList2d : Image.Internal.ImageData.Image -> List (List Color)
Take Image
of and converts it to matrix List (List Int)
where each Color
is pixel
toArray : Image.Internal.ImageData.Image -> Array Color
Take Image
of and converts it to Array Int
where each Color
is pixel
toArray2d : Image.Internal.ImageData.Image -> Array (Array Color)
Take Image
of and converts it to matrix Array (Array Int)
where each Color
is pixel