From 2b9badac1345c865c34097bc5d1699329b53fdc8 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 8 May 2024 17:58:05 +0200 Subject: Add phase --- lib/components/triple_phase.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/components/triple_phase.js (limited to 'lib/components') 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(); + } +}; -- cgit