@cannadayr iKe has its own drawing interface. Your code generates a list of tuples which describe either drawing filled polygons or bitmaps, which can be constructed in any way you wish. The implementation happens to be built on top of the HTML5 Canvas element. You can see documentation for iKe here:
github.com/JohnEarnest/ok/tree/gh-pages/ike#output