Packages

VElixir is a simple to use primitive 3D graphics library. It offers great performance, and ease of use. VElixir was inspired by VPython, which makes basic 3D graphics in python trivial. Now it's just as easy to make 3D graphical visualizations in Elixir.

Current section

Files

Jump to
velixir lib mix tasks demo.ex
Raw

lib/mix/tasks/demo.ex

defmodule Mix.Tasks.Demo do
def run([demo_name]) do
demo_module = case demo_name do
"rgb" -> Rgb
"grav" -> Grav
"orbit" -> Orbit
end
{:ok, _pid} = demo_module.start_link
receive do
{:stop, _reason} -> nil
end
end
end