Forecastr.Renderer.PNG (forecastr v0.3.0)

PNG renderer Render from a list of text to PNG

The PNG will be written returned as binary buffer.

Summary

Functions

Render a map coming from the backend

Render a map with the binary of the PNG and the name of the city from an ascii and a city name

Functions

Link to this function

render(map, units)

@spec render(map(), units :: atom()) :: map()

Render a map coming from the backend

Link to this function

render_png(ascii, city_name)

@spec render_png(list(), String.t()) :: map()

Render a map with the binary of the PNG and the name of the city from an ascii and a city name