]> git.r.bdr.sh - rbdr/lissajous/blobdiff - lib/components/triple_frequency.js
Add phase
[rbdr/lissajous] / lib / components / triple_frequency.js
index 1f118b90ebb30eac84eeaa3fdef32a9986012162..e98410e22f8da8e88c5cc469a1e0ec14319e6d0a 100644 (file)
@@ -5,8 +5,8 @@ export default class TripleFrequency extends Component {
 
     super(config);
 
 
     super(config);
 
-    this.a = this.a || Math.random();
-    this.b = this.b || Math.random();
-    this.c = this.c || Math.random();
+    this.a = this.a || 2 * Math.PI * Math.random();
+    this.b = this.b || 2 * Math.PI * Math.random();
+    this.c = this.c || 2 * Math.PI * Math.random();
   }
 };
   }
 };