Permalink
Browse files

use three.js one - fixed #277

  • Loading branch information...
1 parent 87e1652 commit 02e3c7cd297dc89f2fc1c966c590fd544453709c @jeromeetienne committed Mar 18, 2013
@@ -0,0 +1,11 @@
+<!doctype html><title>Minimal tQuery Page</title>
+<script src="../../../build/tquery-bundle.js"></script>
+<script src="../tquery.colornames.js"></script>
+<body><script>
+ var world = tQuery.createWorld().boilerplate().start();
+ // your code goes here
+ tQuery.createTorusKnot().addTo(world)
+ .setBasicMaterial()
+ .color('pink')
+ .back()
+</script></body>
@@ -0,0 +1,7 @@
+tQuery.convert.toThreeColor.addEventListener('preConvert', function(args){
+ if( args.length !== 1 ) return undefined;
+ if( typeof(args[0]) !== 'string' ) return undefined;
+ var colorName = args[0]
+ var colorHex = THREE.ColorKeywords[colorName];
+ return new THREE.Color(colorHex);
+});
@@ -0,0 +1,7 @@
+requirejs.config({
+ map : {
+ "*" : {
+ 'tquery.colornames' : 'plugins/colornames/tquery.colornames',
+ }
+ },
+});

0 comments on commit 02e3c7c

Please sign in to comment.