I have recently got quite interested in taking the route: ATS -> C ->
Javascript
Here are some examples I did:
Sierpinski Triangles
http://www.ats-lang.org/TEMPATS/JS/mydraw/test01.html
Chess Board
http://www.ats-lang.org/TEMPATS/JS/mydraw/test02.html
Here is one by Will Blair:
Quicksort animation
http://www.ats-lang.org/TEMPATS/JS/AlgoAnim/quicksort/quicksort_anim.html
My code, which is quite simple, can be found at:
https://github.com/githwxi/ATS-Postiats/tree/master/contrib/libats-hwxi/teaching/mydraw
https://github.com/githwxi/ATS-Postiats/tree/master/contrib/libats-hwxi/teaching/mydraw/TEST
Cheers!