DEV Community

Petros Amoiridis
Petros Amoiridis

Posted on

Installing Erlang Graphical Drawer

I was following an identicon generation tutorial using Elixir.

The project was a bit older and used egd as if it was available by default in the project.

Erlang Graphical Drawer

Erlang Graphical Drawer is an interface for 2d-image rendering and is used by Percept to generate dynamic graphs to its web pages. All code is pure erlang, no drivers needed.

Build

$ rebar3 compile



I discovered egd is not part of the standard library anymore. One needs to install it separately in Elixir.

Step 1: Refresh rebar

mix local.rebar --force
Enter fullscreen mode Exit fullscreen mode

Step 2: Add egd to the dependencies

defp deps do
  [
    {:egd, github: "erlang/egd"}
    # ...
  ]
end
Enter fullscreen mode Exit fullscreen mode

Step 3: Install dependencies

mix deps.get
Enter fullscreen mode Exit fullscreen mode

I hope that helps.

Top comments (0)