glee_gd

Package Version Hex Docs

Gleam bindings for the Erlang Graphical Drawer (EGD) library.

gleam add glee_gd
import glee_gd

pub fn main() {
  let image = glee_gd.create(500, 500)
  let color = glee_gd.color(#(109, 74, 126))
  glee_gd.filled_ellipse(image, #(100, 400), #(400, 100), color)
  let binary = glee_gd.render(image)
  // Do something with binary in memory or write it to a file.
}

Further documentation can be found at https://hexdocs.pm/glee_gd.

Development

gleam test  # Run the tests
Search Document