From 5f6ef99eae91f53239f08143cead1249893fef81 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 6 May 2024 22:28:48 +0200 Subject: Initial commit --- lib/components/color.js | 14 ++++++++++++++ lib/components/triple_frequency.js | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 lib/components/color.js create mode 100644 lib/components/triple_frequency.js (limited to 'lib/components') diff --git a/lib/components/color.js b/lib/components/color.js new file mode 100644 index 0000000..a9877bf --- /dev/null +++ b/lib/components/color.js @@ -0,0 +1,14 @@ +import { Component } from '@serpentity/serpentity'; + +export default class Color extends Component { + constructor(config) { + + super(config); + + this.r = Math.random(); + this.g = Math.random(); + this.b = Math.random(); + this.a = 1.0; + } +}; + diff --git a/lib/components/triple_frequency.js b/lib/components/triple_frequency.js new file mode 100644 index 0000000..aa768e3 --- /dev/null +++ b/lib/components/triple_frequency.js @@ -0,0 +1,12 @@ +import { Component } from '@serpentity/serpentity'; + +export default class TripleFrequency extends Component { + constructor(config) { + + super(config); + + this.a = Math.random(); + this.b = Math.random(); + this.c = Math.random(); + } +}; -- cgit