justgook/elm-image/5.0.0

Image.Color

Same as main functions only instead of Int uses Color (avh4/elm-color) to represent pixel

Construct

fromList : Width -> List Color -> Image

Create Image of List Color where each Color is pixel

fromList2d : List (List Color) -> Image

Create Image of List (List Int) where each Color is pixel

fromArray : Width -> Array Color -> Image

Create Image of Array Int where each Color is pixel

fromArray2d : Array (Array Color) -> Image

Create Image of Array (Array Int) where each Color is pixel

Destruct

toList : Image -> List Color

Take Image of and converts it to List Int where each Color is pixel

toList2d : Image -> List (List Color)

Take Image of and converts it to matrix List (List Int) where each Color is pixel

toArray : Image -> Array Color

Take Image of and converts it to Array Int where each Color is pixel

toArray2d : Image -> Array (Array Color)

Take Image of and converts it to matrix Array (Array Int) where each Color is pixel