UNPKG

dreemgl

Version:

DreemGL is an open-source multi-screen prototyping framework for mediated environments, with a visual editor and shader styling for webGL and DALi runtimes written in JavaScript. As a toolkit for gpu-accelerated multiscreen development, DreemGL includes

13 lines (9 loc) 287 B
var isProperty = require('is-property') var gen = function(obj, prop) { return isProperty(prop) ? obj+'.'+prop : obj+'['+JSON.stringify(prop)+']' } gen.valid = isProperty gen.property = function (prop) { return isProperty(prop) ? prop : JSON.stringify(prop) } module.exports = gen