https://github.com/stevetoro/glee_gd
Gleam bindings for erlang/egd.
https://github.com/stevetoro/glee_gd
egd erlang gleam
Last synced: 5 months ago
JSON representation
Gleam bindings for erlang/egd.
- Host: GitHub
- URL: https://github.com/stevetoro/glee_gd
- Owner: stevetoro
- License: mit
- Created: 2024-09-08T04:50:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T07:06:03.000Z (over 1 year ago)
- Last Synced: 2025-07-12T17:47:14.133Z (12 months ago)
- Topics: egd, erlang, gleam
- Language: Erlang
- Homepage: https://hexdocs.pm/glee_gd
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glee_gd
[](https://hex.pm/packages/glee_gd)
[](https://hexdocs.pm/glee_gd/)
Gleam bindings for the [Erlang Graphical Drawer (EGD)](https://github.com/erlang/egd) library.
```sh
gleam add glee_gd
```
```gleam
import glee_gd as egd
pub fn main() {
let color = egd.color(#(109, 74, 126))
let image =
egd.create(500, 500)
|> egd.filled_ellipse(image, #(100, 400), #(400, 100), color)
// Render the image to get a binary that can be written to a file.
let binary = image |> egd.render
// Destroy the image when you're done using it.
image |> egd.destroy
}
```
Further documentation can be found at .
## Development
```sh
gleam test # Run the tests
```