diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-08 17:58:05 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-08 17:58:05 +0200 |
| commit | 2b9badac1345c865c34097bc5d1699329b53fdc8 (patch) | |
| tree | e9db2b722d116b937330eb02056901226e987a61 /lib/components | |
| parent | 3a88e11079e5e331a10ed35ffdd67d8f3a790d23 (diff) | |
Add phase
Diffstat (limited to 'lib/components')
| -rw-r--r-- | lib/components/triple_phase.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/components/triple_phase.js b/lib/components/triple_phase.js new file mode 100644 index 0000000..66b874b --- /dev/null +++ b/lib/components/triple_phase.js @@ -0,0 +1,12 @@ +import { Component } from '@serpentity/serpentity'; + +export default class TriplePhase extends Component { + constructor(config) { + + super(config); + + this.a = this.a || Math.PI * Math.random(); + this.b = this.b || Math.PI * Math.random(); + this.c = this.c || Math.PI * Math.random(); + } +}; |