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