code: def _glslify(r):
      
      if isinstance(r, string_types):
          return r
      else:
          assert 2 <= len(r) <= 4
          return 'vec{}({})'.format(len(r), ', '.join(map(str, r)))
docs: Transform a string or a n-tuple to a valid GLSL expression.