Pngex.generate

You're seeing just the function generate, go back to Pngex module for more information.
Link to this function

generate(pngex, data)

Specs

generate(t(), data()) :: iolist()

Generates a PNG image.

Examples

image =
  Pngex.new(type: :rgb, depth: :depth8, width: 16, height: 16)
  |> Pngex.generate(for(c <- 0..255, do: {c, 255 - c, 0}))

File.write("image.png", image)