- Author
-
Jeremy Voorhis
- Copyright
-
© 2010 Jeremy Voorhis
- License
-
GPL3 (see LICENSE)
animate! do |p| RGBA[1 - p.x, p.y, p.x, 0] end
Anima is a Ruby domain specific language for animation. Images are defined as a function from a point in continuous space to a color, that is a floating point quadruple representing channels red, green, blue and alpha. Images can be viewed with the animate method, which opens a window for viewing.
Currently, there is only support for static images that are defined using floating point arithmetic. Future versions will support interactivity and possibly define semantics for working with time.
Anima is a functional, JIT compiled DSL, inspired by Elliott et. al. <conal.net/papers/jfp-saig/>. Its design is comparable to Pan’s <conal.net/papers/bridges2001/>, but Anima JIT compiles its image processers instead of “going via C”.
-
LLVM 2.6, compiled with shared library support <llvm.org/>
-
ruby-llvm <github.com/jvoorhis/ruby-llvm>
-
OpenGL and GLUT
