TWGL.js

2015-04-14

I wrote an article for webglfundamentals.org called less code more fun. WebGL is a verbose language and I wanted to explain at least one way write some functions to make it less verbose. After that I wrote an article about drawing multiple things. The combination of those 2 lead me to think I really should turn those concepts into their own library. The result is TWGL.js.

twgljs.org

TWGL.js is just some helper functions. Unlike many other libraries it is mostly unopinionated meaning it doesn't really impose any structure. It does not create any classes. All it does is remove much of the verbosity of WebGL. You can use it as little or as much as you want mixed with your plain native WebGL. TWGL.js keeps no state around.

I hope people find it useful or at least maybe find some interesting ideas they can apply to their own code.

I'm trying to decide if I should also make a higher level library that would use TWGL.js as it's base or just give in to three.js ;)

Comments
More ranting on npm and the state of node libraries
webglfundamentals.org