webgl sandbox inspired by mdn documentation