[{"name":"Image","comment":"\n\n@docs Image\n\n\n# Decoding\n\n@docs decode\n\n\n# Encoding\n\n@docs encodeBmp, encodePng\n\n\n# Construct\n\n@docs fromList, fromList2d, fromArray, fromArray2d\n\n\n# Destruct\n\n@docs toList, toList2d, toArray, toArray2d\n\n\n# Meta Data\n\n@docs dimensions\n\n\n# Helper Types\n\n@docs Width, Height\n\n","unions":[],"aliases":[{"name":"Height","comment":" Just syntax sugar for easier understanding\n","args":[],"type":"Basics.Int"},{"name":"Image","comment":" Data Model representing Image data, that can be used to create image, or convert primitives to use image pixels as data\n","args":[],"type":"Image.Internal.ImageData.Image"},{"name":"Width","comment":" Just syntax sugar for easier understanding\n","args":[],"type":"Basics.Int"}],"values":[{"name":"decode","comment":" Convert blob of image (`png` or `bmp`) into [`Image`](#Image)\n","type":"Bytes.Bytes -> Maybe.Maybe { width : Image.Width, height : Image.Height, data : Image.Image }"},{"name":"dimensions","comment":" Get `width` and `height` of [`Image`](#Image)\n","type":"Image.Image -> { width : Basics.Int, height : Basics.Int }"},{"name":"encodeBmp","comment":" The BMP file format, also known as bitmap image file or device independent bitmap (DIB) file format or simply a bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows and OS/2 operating systems.\n\n**Note**: Using BMP 32bit is discouraged due to lack of proper support across browsers\n\n","type":"Image.Image -> Bytes.Bytes"},{"name":"encodePng","comment":" Portable Network Graphics (PNG) is a raster-graphics file-format that supports lossless data compression. PNG was developed as an improved, non-patented replacement for Graphics Interchange Format (GIF).\n\nPNG supports palette-based images (with palettes of 24-bit RGB or 32-bit RGBA colors), grayscale images (with or without alpha channel for transparency), and full-color non-palette-based RGB images (with or without alpha channel).\n\n","type":"Image.Image -> Bytes.Bytes"},{"name":"fromArray","comment":" Create [`Image`](#Image) of `Array Int` where each Int is `0xRRGGBBAA`\n","type":"Image.Width -> Array.Array Basics.Int -> Image.Image"},{"name":"fromArray2d","comment":" Create [`Image`](#Image) of `Array (Array Int)` where each Int is `0xRRGGBBAA`\n","type":"Array.Array (Array.Array Basics.Int) -> Image.Image"},{"name":"fromList","comment":" Create [`Image`](#Image) of `List Int` where each Int is `0xRRGGBBAA`\n","type":"Image.Width -> List.List Basics.Int -> Image.Image"},{"name":"fromList2d","comment":" Create [`Image`](#Image) of `List (List Int)` where each Int is `0xRRGGBBAA`\n","type":"List.List (List.List Basics.Int) -> Image.Image"},{"name":"toArray","comment":" Take [`Image`](#Image) of and converts it to `Array Int` where each Int is `0xRRGGBBAA`\n","type":"Image.Image -> Array.Array Basics.Int"},{"name":"toArray2d","comment":" Take [`Image`](#Image) of and converts it to matrix `Array (Array Int)` where each Int is `0xRRGGBBAA`\n","type":"Image.Image -> Array.Array (Array.Array Basics.Int)"},{"name":"toList","comment":" Take [`Image`](#Image) of and converts it to `List Int` where each Int is `0xRRGGBBAA`\n","type":"Image.Image -> List.List Basics.Int"},{"name":"toList2d","comment":" Take [`Image`](#Image) of and converts it to matrix `List (List Int)` where each Int is `0xRRGGBBAA`\n","type":"Image.Image -> List.List (List.List Basics.Int)"}],"binops":[]},{"name":"Image.Color","comment":" Same as main functions only instead of `Int` uses `Color` (`avh4/elm-color`) to represent pixel\n\n\n# Construct\n\n@docs fromList, fromList2d, fromArray, fromArray2d\n\n\n# Destruct\n\n@docs toList, toList2d, toArray, toArray2d\n\n","unions":[],"aliases":[],"values":[{"name":"fromArray","comment":" Create [`Image`](#Image) of `Array Int` where each `Color` is pixel\n","type":"Image.Width -> Array.Array Color.Color -> Image.Internal.ImageData.Image"},{"name":"fromArray2d","comment":" Create [`Image`](#Image) of `Array (Array Int)` where each `Color` is pixel\n","type":"Array.Array (Array.Array Color.Color) -> Image.Internal.ImageData.Image"},{"name":"fromList","comment":" Create [`Image`](Image#Image) of `List Color` where each `Color` is pixel\n","type":"Image.Width -> List.List Color.Color -> Image.Internal.ImageData.Image"},{"name":"fromList2d","comment":" Create [`Image`](#Image) of `List (List Int)` where each `Color` is pixel\n","type":"List.List (List.List Color.Color) -> Image.Internal.ImageData.Image"},{"name":"toArray","comment":" Take [`Image`](#Image) of and converts it to `Array Int` where each `Color` is pixel\n","type":"Image.Internal.ImageData.Image -> Array.Array Color.Color"},{"name":"toArray2d","comment":" Take [`Image`](#Image) of and converts it to matrix `Array (Array Int)` where each `Color` is pixel\n","type":"Image.Internal.ImageData.Image -> Array.Array (Array.Array Color.Color)"},{"name":"toList","comment":" Take [`Image`](#Image) of and converts it to `List Int` where each `Color` is pixel\n","type":"Image.Internal.ImageData.Image -> List.List Color.Color"},{"name":"toList2d","comment":" Take [`Image`](#Image) of and converts it to matrix `List (List Int)` where each `Color` is pixel\n","type":"Image.Internal.ImageData.Image -> List.List (List.List Color.Color)"}],"binops":[]},{"name":"Image.Magic","comment":"\n\n@docs mirror\n\n","unions":[],"aliases":[],"values":[{"name":"mirror","comment":" ","type":"Basics.Bool -> Basics.Bool -> Image.Internal.ImageData.Image -> Image.Internal.ImageData.Image"}],"binops":[]}]