瀏覽代碼

Merge pull request #15524 from linbingquan/clean-up

Examples: Clean up
Mr.doob 6 年之前
父節點
當前提交
4cb966e6e8
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      examples/js/offscreen/scene.js

+ 6 - 2
examples/js/offscreen/scene.js

@@ -71,7 +71,11 @@ function animate() {
 // PRNG
 
 var seed = 1;
+
 function random() {
-	var x = Math.sin(seed++) * 10000;
-	return x - Math.floor(x);
+
+	var x = Math.sin( seed ++ ) * 10000;
+
+	return x - Math.floor( x );
+
 }