GitHub - code-charity/webgl.js: JavaScript WebGL library. · GitHub
Skip to content

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

webgl.js

Manipulate WebGL in the same way as the DOM.

Usage

<!doctype html>
<html>
    <head>...</head>
    <body>
        <canvas></canvas>

    	<script src="webgl.js"></script>
    	<script>
    	    var element = WEBGL.createElement('plane');

    	    element.style.width = 100;
    	    element.style.height = 100;
    	    element.style.backgroundColor = 0xFFFFFF;
    	</script>
    </body>
</html>

Supported styles

  • left
  • top
  • width
  • height
  • background-color
  • background-image
  • scale
  • rotation

About

JavaScript WebGL library.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages