hex rendering references

the demos are in javascript but the code blocks are generally in haskell. feel free to use any of the code here for whatever.