A Clojerl application to create drawings.
$ rebar3 compile
There are some example sketches that you can run.
For example to start the circles
example use the following code:
$ rebar3 clojerl repl
Clojure 0.9.0
clje.user=> (require '[doodler.examples.circles :as c])
nil
;; Start the sketch with a regular 2D canvas
clje.user=> (c/sketch)
#erl[:wx_ref 35 :wxFrame #<0.615.0>]
There's also (currently limited) for OpenGL which can be enabled by
providing :open-gl true
to the skecth:
;; Start the sketch with an OpenGL canvas
clje.user=> (c/sketch :renderer :opengl)
Renderer: AMD Radeon Pro 5300M OpenGL Engine
Version: 2.1 ATI-4.6.20
Alpha test: 0
Point size: [0,0,0,0,-1184628731,149241419,944143440,32707,1,0,0,0,944143448,
32707,946432320,32707]
#erl[:wx_ref 35 :wxFrame #<0.643.0>]
- Getting started with OpenGL in Elixir
- Introduction to OpenGL
- An Efficient Way to Draw Approximate Circles in OpenGL
- Scenic
- Learn OpenGL
- OpengGl Tutorials
- [Introduction to OpenGL Graphics Programming][into-to-opengl]
- Game Development StackExchange
- Modern OpenGL
- p5js.org Online Editor