diff options
Diffstat (limited to 'lib/components/color.js')
| -rw-r--r-- | lib/components/color.js | 14 |
1 files changed, 14 insertions, 0 deletions
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; + } +}; + |