Drawing a sin curve
This example uses package wire to draw a sin curve as it appears from a perspective and orthographic camera and from various positions.
Dependencies
Package wire depends on GLFW. GLFW has its own dependencies; on Ubuntu for example you need the libgl1-mesa-dev
and xorg-dev
packages:
sudo apt install libgl1-mesa-dev xorg-dev
Run the example
To run the example from a terminal, with the current working directory as this directory, execute the command:
go run .
Example output